Instructions to use maywell/Synatra-V0.1-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maywell/Synatra-V0.1-7B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="maywell/Synatra-V0.1-7B-Instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("maywell/Synatra-V0.1-7B-Instruct") model = AutoModelForCausalLM.from_pretrained("maywell/Synatra-V0.1-7B-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use maywell/Synatra-V0.1-7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "maywell/Synatra-V0.1-7B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maywell/Synatra-V0.1-7B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/maywell/Synatra-V0.1-7B-Instruct
- SGLang
How to use maywell/Synatra-V0.1-7B-Instruct 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 "maywell/Synatra-V0.1-7B-Instruct" \ --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": "maywell/Synatra-V0.1-7B-Instruct", "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 "maywell/Synatra-V0.1-7B-Instruct" \ --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": "maywell/Synatra-V0.1-7B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use maywell/Synatra-V0.1-7B-Instruct with Docker Model Runner:
docker model run hf.co/maywell/Synatra-V0.1-7B-Instruct
Commit History
-
Adding Evaluation Results (#1)
- Adding Evaluation Results (c5d73b278494c2c69204250330e0e316af621811) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>4e9d671
-
Update README.md
5c3e84b
-
Update README.md
ad4a0c2 -
Update tokenizer_config.json
4d37e91
-
Update README.md
375989c -
Update README.md
7184f8d -
Update README.md
900f0a9
-
Update config.json
c63e3be -
Upload tokenizer.json
74e0ece -
Delete added_tokens.json
f0230fa -
Update README.md
fafcfb9 -
Update README.md
9b79252 -
Update README.md
15cf1c5 -
Update README.md
7ee3416
-
Update README.md
8e3c3e4 -
Update README.md
9698e26 -
Update README.md
10b1598 -
Update README.md
eb325a7 -
Update config.json
179f51c -
Update README.md
04e068a -
Upload kullm_eval.png
97104fe -
Update README.md
df02b63 -
Update README.md
9d01321 -
add space
21ebdee -
Upload folder using huggingface_hub
8d2014d -
Update README.md
b50eeac -
Update README.md
5a1b9d7 -
initial commit
05f158b