Text Generation
Transformers
Uzbek
English
text-generation-inference
summarization
translation
question-answering
Instructions to use behbudiy/Mistral-Nemo-Instruct-Uz with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use behbudiy/Mistral-Nemo-Instruct-Uz with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="behbudiy/Mistral-Nemo-Instruct-Uz")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("behbudiy/Mistral-Nemo-Instruct-Uz", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use behbudiy/Mistral-Nemo-Instruct-Uz with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "behbudiy/Mistral-Nemo-Instruct-Uz" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "behbudiy/Mistral-Nemo-Instruct-Uz", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/behbudiy/Mistral-Nemo-Instruct-Uz
- SGLang
How to use behbudiy/Mistral-Nemo-Instruct-Uz with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "behbudiy/Mistral-Nemo-Instruct-Uz" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "behbudiy/Mistral-Nemo-Instruct-Uz", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "behbudiy/Mistral-Nemo-Instruct-Uz" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "behbudiy/Mistral-Nemo-Instruct-Uz", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use behbudiy/Mistral-Nemo-Instruct-Uz with Docker Model Runner:
docker model run hf.co/behbudiy/Mistral-Nemo-Instruct-Uz
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- consolidated.safetensors +3 -0
- params.json +11 -0
- tekken.json +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tekken.json filter=lfs diff=lfs merge=lfs -text
|
consolidated.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff0a526694d03a07bc5e0d46d5d27f8e3a738f782503419cda1309eef605133f
|
| 3 |
+
size 24495604224
|
params.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dim": 5120,
|
| 3 |
+
"n_layers": 40,
|
| 4 |
+
"head_dim": 128,
|
| 5 |
+
"hidden_dim": 14336,
|
| 6 |
+
"n_heads": 32,
|
| 7 |
+
"n_kv_heads": 8,
|
| 8 |
+
"norm_eps": 1e-05,
|
| 9 |
+
"vocab_size": 131072,
|
| 10 |
+
"rope_theta": 1000000.0
|
| 11 |
+
}
|
tekken.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eccd1665d2e477697c33cb7f0daa6f6dfefc57a0a6bceb66d4be52952f827516
|
| 3 |
+
size 14801223
|