Audio-Text-to-Text
Safetensors
GGUF
English
Chinese
simultaneous-translation
speech-translation
streaming
qwen3-omni
vllm
fp8
llama.cpp
conversational
Instructions to use timekettle/Babelfish-SimulST with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use timekettle/Babelfish-SimulST with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M # Run inference directly in the terminal: llama cli -hf timekettle/Babelfish-SimulST:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M # Run inference directly in the terminal: llama cli -hf timekettle/Babelfish-SimulST:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf timekettle/Babelfish-SimulST:Q4_K_M
Use Docker
docker model run hf.co/timekettle/Babelfish-SimulST:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use timekettle/Babelfish-SimulST with Ollama:
ollama run hf.co/timekettle/Babelfish-SimulST:Q4_K_M
- Unsloth Desktop
- Pi
How to use timekettle/Babelfish-SimulST with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "timekettle/Babelfish-SimulST:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use timekettle/Babelfish-SimulST with Docker Model Runner:
docker model run hf.co/timekettle/Babelfish-SimulST:Q4_K_M
- Lemonade
How to use timekettle/Babelfish-SimulST with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull timekettle/Babelfish-SimulST:Q4_K_M
Run and chat with the model
lemonade run user.Babelfish-SimulST-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use timekettle/Babelfish-SimulST with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default timekettle/Babelfish-SimulST:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use timekettle/Babelfish-SimulST with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf timekettle/Babelfish-SimulST:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "timekettle/Babelfish-SimulST:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
dengshiyang2003 commited on
Commit ·
dc8a907
1
Parent(s): b3db4b1
Switch deployment tutorial in model card from .simulst/env to conda
Browse files- README.md +30 -15
- README_zh.md +30 -15
README.md
CHANGED
|
@@ -168,37 +168,52 @@ COMET and CometKiwi are on a 0–100 scale. The best value in each column of eac
|
|
| 168 |
|
| 169 |
### Requirements
|
| 170 |
|
| 171 |
-
- Linux, Python 3.10+, NVIDIA GPU: one 80 GB GPU for the FP16 model (or two 48 GB GPUs with tensor parallelism), 48 GB or more for the FP8 model;
|
| 172 |
- vLLM (tested with 0.28.0 and a 0.23 nightly, with transformers 5.13.1);
|
| 173 |
- see below for the GGUF version with llama.cpp.
|
| 174 |
|
| 175 |
-
###
|
|
|
|
|
|
|
| 176 |
|
| 177 |
```bash
|
| 178 |
git clone https://github.com/timekettle/Babelfish-SimulMT.git
|
| 179 |
cd Babelfish-SimulMT
|
| 180 |
-
bash scripts/deploy.sh --install --model timekettle/Babelfish-SimulMT/Babelfish-30B-A3B
|
| 181 |
-
```
|
| 182 |
|
| 183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
|
| 185 |
-
|
| 186 |
|
| 187 |
```bash
|
| 188 |
-
#
|
| 189 |
-
bash scripts/deploy.sh --
|
| 190 |
-
# existing vLLM environment, local model
|
| 191 |
-
bash scripts/deploy.sh --python /path/to/env/bin/python --model /path/to/Babelfish-30B-A3B --gpus 0
|
| 192 |
# FP8 version
|
| 193 |
-
bash scripts/deploy.sh --
|
| 194 |
-
# tensor parallelism over two GPUs
|
| 195 |
-
bash scripts/deploy.sh --
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
```
|
| 197 |
|
| 198 |
-
Or start the server directly:
|
| 199 |
|
| 200 |
```bash
|
| 201 |
-
pip install -e . # in an environment that has vLLM
|
| 202 |
python -m simulst.server --model /path/to/Babelfish-30B-A3B --port 8080
|
| 203 |
```
|
| 204 |
|
|
|
|
| 168 |
|
| 169 |
### Requirements
|
| 170 |
|
| 171 |
+
- Linux, Conda (Python 3.10+), NVIDIA GPU: one 80 GB GPU for the FP16 model (or two 48 GB GPUs with tensor parallelism), 48 GB or more for the FP8 model;
|
| 172 |
- vLLM (tested with 0.28.0 and a 0.23 nightly, with transformers 5.13.1);
|
| 173 |
- see below for the GGUF version with llama.cpp.
|
| 174 |
|
| 175 |
+
### Setup and deployment (vLLM)
|
| 176 |
+
|
| 177 |
+
Create and activate a conda environment, then install the dependencies:
|
| 178 |
|
| 179 |
```bash
|
| 180 |
git clone https://github.com/timekettle/Babelfish-SimulMT.git
|
| 181 |
cd Babelfish-SimulMT
|
|
|
|
|
|
|
| 182 |
|
| 183 |
+
conda create -n babelfish python=3.12 -y
|
| 184 |
+
conda activate babelfish
|
| 185 |
+
|
| 186 |
+
# driver supports CUDA 13 (>= 580)
|
| 187 |
+
pip install vllm==0.28.0
|
| 188 |
+
# driver supports CUDA 12.x only (e.g. 535 / 550): use this instead
|
| 189 |
+
# pip install "vllm==0.28.0+cu129" "torch==2.13.0+cu129" \
|
| 190 |
+
# --extra-index-url https://download.pytorch.org/whl/cu129 \
|
| 191 |
+
# --extra-index-url https://wheels.vllm.ai/0.28.0/cu129
|
| 192 |
+
|
| 193 |
+
pip install -e .
|
| 194 |
+
```
|
| 195 |
|
| 196 |
+
With the `babelfish` environment active, start the server (passing a model ID downloads it automatically; once you see `Ready: http://127.0.0.1:8080/` it is ready; Ctrl+C stops it):
|
| 197 |
|
| 198 |
```bash
|
| 199 |
+
# download from Hugging Face and start (FP16)
|
| 200 |
+
bash scripts/deploy.sh --model timekettle/Babelfish-SimulMT/Babelfish-30B-A3B
|
|
|
|
|
|
|
| 201 |
# FP8 version
|
| 202 |
+
bash scripts/deploy.sh --model timekettle/Babelfish-SimulMT/Babelfish-30B-A3B-FP8
|
| 203 |
+
# local model, single GPU or tensor parallelism over two GPUs
|
| 204 |
+
bash scripts/deploy.sh --model /path/to/Babelfish-30B-A3B --gpus 0
|
| 205 |
+
bash scripts/deploy.sh --model /path/to/Babelfish-30B-A3B --gpus 0,1
|
| 206 |
+
```
|
| 207 |
+
|
| 208 |
+
You can also pass `--install` to let the script create and set up the `babelfish` conda environment automatically (add `--cu129` for CUDA 12.x drivers):
|
| 209 |
+
|
| 210 |
+
```bash
|
| 211 |
+
bash scripts/deploy.sh --install --model timekettle/Babelfish-SimulMT/Babelfish-30B-A3B
|
| 212 |
```
|
| 213 |
|
| 214 |
+
Or start the server directly inside the `babelfish` conda environment:
|
| 215 |
|
| 216 |
```bash
|
|
|
|
| 217 |
python -m simulst.server --model /path/to/Babelfish-30B-A3B --port 8080
|
| 218 |
```
|
| 219 |
|
README_zh.md
CHANGED
|
@@ -151,37 +151,52 @@ COMET 和 CometKiwi 为百分制(0–100);每个指标每列最好的值
|
|
| 151 |
|
| 152 |
### 环境要求
|
| 153 |
|
| 154 |
-
- Linux,Python 3.10 及以上,NVIDIA GPU:FP16 版需要 1 张 80 GB 显卡(或 2 张 48 GB 做张量并行),FP8 版需要 48 GB 及以上显存;
|
| 155 |
- vLLM(已测试 0.28.0 和 0.23 nightly,配 transformers 5.13.1);
|
| 156 |
- llama.cpp 部署 GGUF 版的要求见下文。
|
| 157 |
|
| 158 |
-
###
|
|
|
|
|
|
|
| 159 |
|
| 160 |
```bash
|
| 161 |
git clone https://github.com/timekettle/Babelfish-SimulMT.git
|
| 162 |
cd Babelfish-SimulMT
|
| 163 |
-
bash scripts/deploy.sh --install --model timekettle/Babelfish-SimulMT/Babelfish-30B-A3B
|
| 164 |
-
```
|
| 165 |
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
-
|
| 169 |
|
| 170 |
```bash
|
| 171 |
-
#
|
| 172 |
-
bash scripts/deploy.sh --
|
| 173 |
-
# 已有 vLLM 环境、模型已在本地
|
| 174 |
-
bash scripts/deploy.sh --python /path/to/env/bin/python --model /path/to/Babelfish-30B-A3B --gpus 0
|
| 175 |
# FP8 版
|
| 176 |
-
bash scripts/deploy.sh --
|
| 177 |
-
# 两
|
| 178 |
-
bash scripts/deploy.sh --
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
```
|
| 180 |
|
| 181 |
-
|
| 182 |
|
| 183 |
```bash
|
| 184 |
-
pip install -e . # 在已装好 vLLM 的环境里
|
| 185 |
python -m simulst.server --model /path/to/Babelfish-30B-A3B --port 8080
|
| 186 |
```
|
| 187 |
|
|
|
|
| 151 |
|
| 152 |
### 环境要求
|
| 153 |
|
| 154 |
+
- Linux,Conda(Python 3.10 及以上),NVIDIA GPU:FP16 版需要 1 张 80 GB 显卡(或 2 张 48 GB 做张量并行),FP8 版需要 48 GB 及以上显存;
|
| 155 |
- vLLM(已测试 0.28.0 和 0.23 nightly,配 transformers 5.13.1);
|
| 156 |
- llama.cpp 部署 GGUF 版的要求见下文。
|
| 157 |
|
| 158 |
+
### 环境配置与部署(vLLM)
|
| 159 |
+
|
| 160 |
+
先创建并激活 conda 环境,再安装依赖:
|
| 161 |
|
| 162 |
```bash
|
| 163 |
git clone https://github.com/timekettle/Babelfish-SimulMT.git
|
| 164 |
cd Babelfish-SimulMT
|
|
|
|
|
|
|
| 165 |
|
| 166 |
+
conda create -n babelfish python=3.12 -y
|
| 167 |
+
conda activate babelfish
|
| 168 |
+
|
| 169 |
+
# 驱动支持 CUDA 13(>= 580)
|
| 170 |
+
pip install vllm==0.28.0
|
| 171 |
+
# 显卡驱动只支持到 CUDA 12.x(例如 535 / 550)时,改用下面这行:
|
| 172 |
+
# pip install "vllm==0.28.0+cu129" "torch==2.13.0+cu129" \
|
| 173 |
+
# --extra-index-url https://download.pytorch.org/whl/cu129 \
|
| 174 |
+
# --extra-index-url https://wheels.vllm.ai/0.28.0/cu129
|
| 175 |
+
|
| 176 |
+
pip install -e .
|
| 177 |
+
```
|
| 178 |
|
| 179 |
+
激活 `babelfish` 环境后启动服务(传入模型 ID 会自动下载模型;看到 `Ready: http://127.0.0.1:8080/` 后即可使用,按 Ctrl+C 停止):
|
| 180 |
|
| 181 |
```bash
|
| 182 |
+
# 从 Hugging Face 下载并启动(FP16 原版)
|
| 183 |
+
bash scripts/deploy.sh --model timekettle/Babelfish-SimulMT/Babelfish-30B-A3B
|
|
|
|
|
|
|
| 184 |
# FP8 版
|
| 185 |
+
bash scripts/deploy.sh --model timekettle/Babelfish-SimulMT/Babelfish-30B-A3B-FP8
|
| 186 |
+
# 本地权重,指定单卡或两卡张量并行
|
| 187 |
+
bash scripts/deploy.sh --model /path/to/Babelfish-30B-A3B --gpus 0
|
| 188 |
+
bash scripts/deploy.sh --model /path/to/Babelfish-30B-A3B --gpus 0,1
|
| 189 |
+
```
|
| 190 |
+
|
| 191 |
+
也可以给脚本加 `--install`,自动创建并配置名为 `babelfish` 的 conda 环境(驱动只到 CUDA 12.x 时加 `--cu129`):
|
| 192 |
+
|
| 193 |
+
```bash
|
| 194 |
+
bash scripts/deploy.sh --install --model timekettle/Babelfish-SimulMT/Babelfish-30B-A3B
|
| 195 |
```
|
| 196 |
|
| 197 |
+
或不用脚本,在 `babelfish` conda 环境里直接启动服务:
|
| 198 |
|
| 199 |
```bash
|
|
|
|
| 200 |
python -m simulst.server --model /path/to/Babelfish-30B-A3B --port 8080
|
| 201 |
```
|
| 202 |
|