Instructions to use KnutJaegersberg/Qwen-1_8B-Chat-llama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KnutJaegersberg/Qwen-1_8B-Chat-llama with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KnutJaegersberg/Qwen-1_8B-Chat-llama")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KnutJaegersberg/Qwen-1_8B-Chat-llama") model = AutoModelForCausalLM.from_pretrained("KnutJaegersberg/Qwen-1_8B-Chat-llama", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KnutJaegersberg/Qwen-1_8B-Chat-llama with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KnutJaegersberg/Qwen-1_8B-Chat-llama" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KnutJaegersberg/Qwen-1_8B-Chat-llama", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KnutJaegersberg/Qwen-1_8B-Chat-llama
- SGLang
How to use KnutJaegersberg/Qwen-1_8B-Chat-llama 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 "KnutJaegersberg/Qwen-1_8B-Chat-llama" \ --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": "KnutJaegersberg/Qwen-1_8B-Chat-llama", "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 "KnutJaegersberg/Qwen-1_8B-Chat-llama" \ --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": "KnutJaegersberg/Qwen-1_8B-Chat-llama", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KnutJaegersberg/Qwen-1_8B-Chat-llama with Docker Model Runner:
docker model run hf.co/KnutJaegersberg/Qwen-1_8B-Chat-llama
Their non-commercial research license applies.
I used this script to make the model and used the tokenizer of CausalLM, as suggested in the comments of the script.
https://github.com/hiyouga/LLaMA-Factory/blob/main/tests/llamafy_qwen.py
Open LLM Leaderboard Evaluation Results
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 42.94 |
| AI2 Reasoning Challenge (25-Shot) | 36.95 |
| HellaSwag (10-Shot) | 54.34 |
| MMLU (5-Shot) | 44.55 |
| TruthfulQA (0-shot) | 43.70 |
| Winogrande (5-shot) | 58.88 |
| GSM8k (5-shot) | 19.26 |
- Downloads last month
- 66
Evaluation results
- normalized accuracy on AI2 Reasoning Challenge (25-Shot)test set Open LLM Leaderboard36.950
- normalized accuracy on HellaSwag (10-Shot)validation set Open LLM Leaderboard54.340
- accuracy on MMLU (5-Shot)test set Open LLM Leaderboard44.550
- mc2 on TruthfulQA (0-shot)validation set Open LLM Leaderboard43.700
- accuracy on Winogrande (5-shot)validation set Open LLM Leaderboard58.880
- accuracy on GSM8k (5-shot)test set Open LLM Leaderboard19.260