Text Generation
Transformers
Safetensors
zagros
nlp
translation
sentiment-analysis
question-answering
persian
mixture-of-experts
Mixture of Experts
conversational
Instructions to use darsadilab/zagros-1.0-quick with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use darsadilab/zagros-1.0-quick with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="darsadilab/zagros-1.0-quick") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("darsadilab/zagros-1.0-quick", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use darsadilab/zagros-1.0-quick with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "darsadilab/zagros-1.0-quick" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "darsadilab/zagros-1.0-quick", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/darsadilab/zagros-1.0-quick
- SGLang
How to use darsadilab/zagros-1.0-quick 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 "darsadilab/zagros-1.0-quick" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "darsadilab/zagros-1.0-quick", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "darsadilab/zagros-1.0-quick" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "darsadilab/zagros-1.0-quick", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use darsadilab/zagros-1.0-quick with Docker Model Runner:
docker model run hf.co/darsadilab/zagros-1.0-quick
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,39 +14,6 @@ tags:
|
|
| 14 |
- persian
|
| 15 |
- mixture-of-experts
|
| 16 |
- moe
|
| 17 |
-
model-index:
|
| 18 |
-
- name: Zagros-1.0-Quick
|
| 19 |
-
results:
|
| 20 |
-
- task:
|
| 21 |
-
type: translation
|
| 22 |
-
name: Persian-English Translation
|
| 23 |
-
dataset:
|
| 24 |
-
type: wmt
|
| 25 |
-
name: WMT Persian-English
|
| 26 |
-
metrics:
|
| 27 |
-
- name: BLEU
|
| 28 |
-
type: bleu
|
| 29 |
-
value: 35.2
|
| 30 |
-
- task:
|
| 31 |
-
type: text-generation
|
| 32 |
-
name: Persian Summarization
|
| 33 |
-
dataset:
|
| 34 |
-
type: custom
|
| 35 |
-
name: Persian Summarization Dataset
|
| 36 |
-
metrics:
|
| 37 |
-
- name: ROUGE-L
|
| 38 |
-
type: rouge
|
| 39 |
-
value: 0.68
|
| 40 |
-
- task:
|
| 41 |
-
type: sentiment-analysis
|
| 42 |
-
name: Persian Sentiment Analysis
|
| 43 |
-
dataset:
|
| 44 |
-
type: custom
|
| 45 |
-
name: Persian Sentiment Dataset
|
| 46 |
-
metrics:
|
| 47 |
-
- name: F1
|
| 48 |
-
type: f1
|
| 49 |
-
value: 0.93
|
| 50 |
library_name: transformers
|
| 51 |
pipeline_tag: text-generation
|
| 52 |
---
|
|
|
|
| 14 |
- persian
|
| 15 |
- mixture-of-experts
|
| 16 |
- moe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
library_name: transformers
|
| 18 |
pipeline_tag: text-generation
|
| 19 |
---
|