Instructions to use RUC-AIBOX/Llama-3-SynE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RUC-AIBOX/Llama-3-SynE with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RUC-AIBOX/Llama-3-SynE")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RUC-AIBOX/Llama-3-SynE") model = AutoModelForCausalLM.from_pretrained("RUC-AIBOX/Llama-3-SynE") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RUC-AIBOX/Llama-3-SynE with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RUC-AIBOX/Llama-3-SynE" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RUC-AIBOX/Llama-3-SynE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/RUC-AIBOX/Llama-3-SynE
- SGLang
How to use RUC-AIBOX/Llama-3-SynE 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 "RUC-AIBOX/Llama-3-SynE" \ --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": "RUC-AIBOX/Llama-3-SynE", "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 "RUC-AIBOX/Llama-3-SynE" \ --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": "RUC-AIBOX/Llama-3-SynE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use RUC-AIBOX/Llama-3-SynE with Docker Model Runner:
docker model run hf.co/RUC-AIBOX/Llama-3-SynE
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,9 +20,11 @@ pipeline_tag: text-generation
|
|
| 20 |
🔍 <a href="https://github.com/RUC-GSAI/Llama-3-SynE/blob/main/README.md">English</a>  |  <a href="https://github.com/RUC-GSAI/Llama-3-SynE/blob/main/README_zh.md">简体中文</a>
|
| 21 |
</p> -->
|
| 22 |
|
|
|
|
| 23 |
<p align="center">
|
| 24 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/651a29d566e78720a78317ec/I2rqZ19OY2qvW1V6nOakg.png" width="400"/>
|
| 25 |
</p>
|
|
|
|
| 26 |
|
| 27 |
<p align="center">
|
| 28 |
📄 <a href="https://arxiv.org/abs/2407.18743"> Report </a>  |   💻 <a href="https://github.com/RUC-GSAI/Llama-3-SynE">GitHub Repo</a>
|
|
|
|
| 20 |
🔍 <a href="https://github.com/RUC-GSAI/Llama-3-SynE/blob/main/README.md">English</a>  |  <a href="https://github.com/RUC-GSAI/Llama-3-SynE/blob/main/README_zh.md">简体中文</a>
|
| 21 |
</p> -->
|
| 22 |
|
| 23 |
+
<!-- ---
|
| 24 |
<p align="center">
|
| 25 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/651a29d566e78720a78317ec/I2rqZ19OY2qvW1V6nOakg.png" width="400"/>
|
| 26 |
</p>
|
| 27 |
+
--- -->
|
| 28 |
|
| 29 |
<p align="center">
|
| 30 |
📄 <a href="https://arxiv.org/abs/2407.18743"> Report </a>  |   💻 <a href="https://github.com/RUC-GSAI/Llama-3-SynE">GitHub Repo</a>
|