Instructions to use MoYoYoTech/Translator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use MoYoYoTech/Translator with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MoYoYoTech/Translator", filename="moyoyo_asr_models/qwen2.5-1.5b-instruct-q5_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use MoYoYoTech/Translator with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MoYoYoTech/Translator:Q5_0 # Run inference directly in the terminal: llama-cli -hf MoYoYoTech/Translator:Q5_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MoYoYoTech/Translator:Q5_0 # Run inference directly in the terminal: llama-cli -hf MoYoYoTech/Translator:Q5_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf MoYoYoTech/Translator:Q5_0 # Run inference directly in the terminal: ./llama-cli -hf MoYoYoTech/Translator:Q5_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf MoYoYoTech/Translator:Q5_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf MoYoYoTech/Translator:Q5_0
Use Docker
docker model run hf.co/MoYoYoTech/Translator:Q5_0
- LM Studio
- Jan
- Ollama
How to use MoYoYoTech/Translator with Ollama:
ollama run hf.co/MoYoYoTech/Translator:Q5_0
- Unsloth Studio
How to use MoYoYoTech/Translator with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MoYoYoTech/Translator to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MoYoYoTech/Translator to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MoYoYoTech/Translator to start chatting
- Pi
How to use MoYoYoTech/Translator with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf MoYoYoTech/Translator:Q5_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MoYoYoTech/Translator:Q5_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use MoYoYoTech/Translator with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf MoYoYoTech/Translator:Q5_0
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:8080/v1 hermes config set model.default MoYoYoTech/Translator:Q5_0
Run Hermes
hermes
- Docker Model Runner
How to use MoYoYoTech/Translator with Docker Model Runner:
docker model run hf.co/MoYoYoTech/Translator:Q5_0
- Lemonade
How to use MoYoYoTech/Translator with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MoYoYoTech/Translator:Q5_0
Run and chat with the model
lemonade run user.Translator-Q5_0
List all available models
lemonade list
daihui.zhang commited on
Commit ·
2c5a26c
1
Parent(s): 79486b0
update requirements.txt
Browse files- config.py +1 -1
- pyproject.toml +0 -1
- requirements.txt +2 -10
- uv.lock +0 -17
config.py
CHANGED
|
@@ -2,7 +2,7 @@ import pathlib
|
|
| 2 |
import re
|
| 3 |
import logging
|
| 4 |
|
| 5 |
-
DEBUG =
|
| 6 |
logging.basicConfig(
|
| 7 |
level=logging.DEBUG if DEBUG else logging.INFO,
|
| 8 |
format="%(asctime)s - %(levelname)s - %(message)s",
|
|
|
|
| 2 |
import re
|
| 3 |
import logging
|
| 4 |
|
| 5 |
+
DEBUG = False
|
| 6 |
logging.basicConfig(
|
| 7 |
level=logging.DEBUG if DEBUG else logging.INFO,
|
| 8 |
format="%(asctime)s - %(levelname)s - %(message)s",
|
pyproject.toml
CHANGED
|
@@ -8,7 +8,6 @@ dependencies = [
|
|
| 8 |
"av>=14.2.0",
|
| 9 |
"fastapi>=0.115.12",
|
| 10 |
"librosa>=0.11.0",
|
| 11 |
-
"nltk>=3.9.1",
|
| 12 |
"numpy>=2.1.3",
|
| 13 |
"onnxruntime>=1.21.0",
|
| 14 |
"pyaudio>=0.2.14",
|
|
|
|
| 8 |
"av>=14.2.0",
|
| 9 |
"fastapi>=0.115.12",
|
| 10 |
"librosa>=0.11.0",
|
|
|
|
| 11 |
"numpy>=2.1.3",
|
| 12 |
"onnxruntime>=1.21.0",
|
| 13 |
"pyaudio>=0.2.14",
|
requirements.txt
CHANGED
|
@@ -15,9 +15,7 @@ cffi==1.17.1
|
|
| 15 |
charset-normalizer==3.4.1
|
| 16 |
# via requests
|
| 17 |
click==8.1.8
|
| 18 |
-
# via
|
| 19 |
-
# nltk
|
| 20 |
-
# uvicorn
|
| 21 |
coloredlogs==15.0.1
|
| 22 |
# via onnxruntime
|
| 23 |
decorator==5.2.1
|
|
@@ -52,7 +50,6 @@ jinja2==3.1.6
|
|
| 52 |
joblib==1.4.2
|
| 53 |
# via
|
| 54 |
# librosa
|
| 55 |
-
# nltk
|
| 56 |
# scikit-learn
|
| 57 |
lazy-loader==0.4
|
| 58 |
# via librosa
|
|
@@ -68,8 +65,6 @@ msgpack==1.1.0
|
|
| 68 |
# via librosa
|
| 69 |
networkx==3.4.2
|
| 70 |
# via torch
|
| 71 |
-
nltk==3.9.1
|
| 72 |
-
# via trans (pyproject.toml)
|
| 73 |
numba==0.61.0
|
| 74 |
# via librosa
|
| 75 |
numpy==2.1.3
|
|
@@ -117,9 +112,7 @@ pyyaml==6.0.2
|
|
| 117 |
# huggingface-hub
|
| 118 |
# transformers
|
| 119 |
regex==2024.11.6
|
| 120 |
-
# via
|
| 121 |
-
# nltk
|
| 122 |
-
# transformers
|
| 123 |
requests==2.32.3
|
| 124 |
# via
|
| 125 |
# huggingface-hub
|
|
@@ -166,7 +159,6 @@ tqdm==4.67.1
|
|
| 166 |
# via
|
| 167 |
# trans (pyproject.toml)
|
| 168 |
# huggingface-hub
|
| 169 |
-
# nltk
|
| 170 |
# transformers
|
| 171 |
transformers==4.51.3
|
| 172 |
# via trans (pyproject.toml)
|
|
|
|
| 15 |
charset-normalizer==3.4.1
|
| 16 |
# via requests
|
| 17 |
click==8.1.8
|
| 18 |
+
# via uvicorn
|
|
|
|
|
|
|
| 19 |
coloredlogs==15.0.1
|
| 20 |
# via onnxruntime
|
| 21 |
decorator==5.2.1
|
|
|
|
| 50 |
joblib==1.4.2
|
| 51 |
# via
|
| 52 |
# librosa
|
|
|
|
| 53 |
# scikit-learn
|
| 54 |
lazy-loader==0.4
|
| 55 |
# via librosa
|
|
|
|
| 65 |
# via librosa
|
| 66 |
networkx==3.4.2
|
| 67 |
# via torch
|
|
|
|
|
|
|
| 68 |
numba==0.61.0
|
| 69 |
# via librosa
|
| 70 |
numpy==2.1.3
|
|
|
|
| 112 |
# huggingface-hub
|
| 113 |
# transformers
|
| 114 |
regex==2024.11.6
|
| 115 |
+
# via transformers
|
|
|
|
|
|
|
| 116 |
requests==2.32.3
|
| 117 |
# via
|
| 118 |
# huggingface-hub
|
|
|
|
| 159 |
# via
|
| 160 |
# trans (pyproject.toml)
|
| 161 |
# huggingface-hub
|
|
|
|
| 162 |
# transformers
|
| 163 |
transformers==4.51.3
|
| 164 |
# via trans (pyproject.toml)
|
uv.lock
CHANGED
|
@@ -527,21 +527,6 @@ wheels = [
|
|
| 527 |
{ url = "https://files.pythonhosted.org/packages/b9/54/dd730b32ea14ea797530a4479b2ed46a6fb250f682a9cfb997e968bf0261/networkx-3.4.2-py3-none-any.whl", hash = "sha256:df5d4365b724cf81b8c6a7312509d0c22386097011ad1abe274afd5e9d3bbc5f", size = 1723263 },
|
| 528 |
]
|
| 529 |
|
| 530 |
-
[[package]]
|
| 531 |
-
name = "nltk"
|
| 532 |
-
version = "3.9.1"
|
| 533 |
-
source = { registry = "https://pypi.org/simple" }
|
| 534 |
-
dependencies = [
|
| 535 |
-
{ name = "click" },
|
| 536 |
-
{ name = "joblib" },
|
| 537 |
-
{ name = "regex" },
|
| 538 |
-
{ name = "tqdm" },
|
| 539 |
-
]
|
| 540 |
-
sdist = { url = "https://files.pythonhosted.org/packages/3c/87/db8be88ad32c2d042420b6fd9ffd4a149f9a0d7f0e86b3f543be2eeeedd2/nltk-3.9.1.tar.gz", hash = "sha256:87d127bd3de4bd89a4f81265e5fa59cb1b199b27440175370f7417d2bc7ae868", size = 2904691 }
|
| 541 |
-
wheels = [
|
| 542 |
-
{ url = "https://files.pythonhosted.org/packages/4d/66/7d9e26593edda06e8cb531874633f7c2372279c3b0f46235539fe546df8b/nltk-3.9.1-py3-none-any.whl", hash = "sha256:4fa26829c5b00715afe3061398a8989dc643b92ce7dd93fb4585a70930d168a1", size = 1505442 },
|
| 543 |
-
]
|
| 544 |
-
|
| 545 |
[[package]]
|
| 546 |
name = "numba"
|
| 547 |
version = "0.61.0"
|
|
@@ -1384,7 +1369,6 @@ dependencies = [
|
|
| 1384 |
{ name = "av" },
|
| 1385 |
{ name = "fastapi" },
|
| 1386 |
{ name = "librosa" },
|
| 1387 |
-
{ name = "nltk" },
|
| 1388 |
{ name = "numpy" },
|
| 1389 |
{ name = "onnxruntime" },
|
| 1390 |
{ name = "pyaudio" },
|
|
@@ -1407,7 +1391,6 @@ requires-dist = [
|
|
| 1407 |
{ name = "av", specifier = ">=14.2.0" },
|
| 1408 |
{ name = "fastapi", specifier = ">=0.115.12" },
|
| 1409 |
{ name = "librosa", specifier = ">=0.11.0" },
|
| 1410 |
-
{ name = "nltk", specifier = ">=3.9.1" },
|
| 1411 |
{ name = "numpy", specifier = ">=2.1.3" },
|
| 1412 |
{ name = "onnxruntime", specifier = ">=1.21.0" },
|
| 1413 |
{ name = "pyaudio", specifier = ">=0.2.14" },
|
|
|
|
| 527 |
{ url = "https://files.pythonhosted.org/packages/b9/54/dd730b32ea14ea797530a4479b2ed46a6fb250f682a9cfb997e968bf0261/networkx-3.4.2-py3-none-any.whl", hash = "sha256:df5d4365b724cf81b8c6a7312509d0c22386097011ad1abe274afd5e9d3bbc5f", size = 1723263 },
|
| 528 |
]
|
| 529 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 530 |
[[package]]
|
| 531 |
name = "numba"
|
| 532 |
version = "0.61.0"
|
|
|
|
| 1369 |
{ name = "av" },
|
| 1370 |
{ name = "fastapi" },
|
| 1371 |
{ name = "librosa" },
|
|
|
|
| 1372 |
{ name = "numpy" },
|
| 1373 |
{ name = "onnxruntime" },
|
| 1374 |
{ name = "pyaudio" },
|
|
|
|
| 1391 |
{ name = "av", specifier = ">=14.2.0" },
|
| 1392 |
{ name = "fastapi", specifier = ">=0.115.12" },
|
| 1393 |
{ name = "librosa", specifier = ">=0.11.0" },
|
|
|
|
| 1394 |
{ name = "numpy", specifier = ">=2.1.3" },
|
| 1395 |
{ name = "onnxruntime", specifier = ">=1.21.0" },
|
| 1396 |
{ name = "pyaudio", specifier = ">=0.2.14" },
|