|
|
|
|
@ -1,55 +1,48 @@
|
|
|
|
|
# GPUStack UI
|
|
|
|
|
# GPUStack UI 使用指南
|
|
|
|
|
|
|
|
|
|
UI for [GPUStack](https://github.com/gpustack/gpustack).
|
|
|
|
|
## 环境准备
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
1. [Nodejs](https://nodejs.org/en) 16.0+(with NPM)
|
|
|
|
|
|
|
|
|
|
If you're on Mac
|
|
|
|
|
确保安装 Node.js 16.0 或更高版本(包含 npm)
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
brew install node
|
|
|
|
|
```bash
|
|
|
|
|
访问 https://nodejs.org 下载安装包或使用包管理器安装
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2. [pnpm](https://pnpm.io/installation#using-npm)
|
|
|
|
|
2. 安装yarn
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
npm install -g pnpm
|
|
|
|
|
npm install -g yarn
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3. Setup
|
|
|
|
|
3. 获取代码
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
git clone https://github.com/gpustack/gpustack-ui/
|
|
|
|
|
git clone https://bdgit.educoder.net/pucmnw7fs/gpustack.git
|
|
|
|
|
cd gpustack
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
4. Install dependencies
|
|
|
|
|
4. 安装依赖
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
cd gpustack-ui
|
|
|
|
|
pnpm install
|
|
|
|
|
yarn 或者 yarn add
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
## 项目操作
|
|
|
|
|
|
|
|
|
|
1. Run development server (at http://localhost:9000)
|
|
|
|
|
1. 运行开发服务器(访问地址:http://localhost:9000)
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
npm run dev
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2. build release
|
|
|
|
|
2. 打包
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
npm run build
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Bugs & Issues
|
|
|
|
|
|
|
|
|
|
- Please submit [bugs and issues](https://github.com/gpustack/gpustack/issues) with a label `ui`
|
|
|
|
|
3. 部署
|
|
|
|
|
|
|
|
|
|
## Links
|
|
|
|
|
|
|
|
|
|
- Official website: https://gpustack.ai/
|
|
|
|
|
- Documents: https://docs.gpustack.ai/latest/overview/
|
|
|
|
|
```
|
|
|
|
|
npm run deploy
|
|
|
|
|
```
|
|
|
|
|
|