Instructions to use Yukang/LongAlpaca-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yukang/LongAlpaca-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Yukang/LongAlpaca-13B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Yukang/LongAlpaca-13B") model = AutoModelForCausalLM.from_pretrained("Yukang/LongAlpaca-13B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Yukang/LongAlpaca-13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Yukang/LongAlpaca-13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yukang/LongAlpaca-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Yukang/LongAlpaca-13B
- SGLang
How to use Yukang/LongAlpaca-13B 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 "Yukang/LongAlpaca-13B" \ --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": "Yukang/LongAlpaca-13B", "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 "Yukang/LongAlpaca-13B" \ --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": "Yukang/LongAlpaca-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Yukang/LongAlpaca-13B with Docker Model Runner:
docker model run hf.co/Yukang/LongAlpaca-13B
Adding Evaluation Results
#2
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -363,4 +363,17 @@ If you find this project useful in your research, please consider citing:
|
|
| 363 |
|
| 364 |
## License
|
| 365 |
- LongLoRA is licensed under the Apache License 2.0. This means that it requires the preservation of copyright and license notices.
|
| 366 |
-
- Data and weights are under CC-BY-NC 4.0 License. They are licensed for research use only, and allowed only non-commercial. Models trained using the dataset should not be used outside of research purposes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
|
| 364 |
## License
|
| 365 |
- LongLoRA is licensed under the Apache License 2.0. This means that it requires the preservation of copyright and license notices.
|
| 366 |
+
- Data and weights are under CC-BY-NC 4.0 License. They are licensed for research use only, and allowed only non-commercial. Models trained using the dataset should not be used outside of research purposes.
|
| 367 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 368 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_Yukang__LongAlpaca-13B)
|
| 369 |
+
|
| 370 |
+
| Metric | Value |
|
| 371 |
+
|-----------------------|---------------------------|
|
| 372 |
+
| Avg. | 39.16 |
|
| 373 |
+
| ARC (25-shot) | 42.58 |
|
| 374 |
+
| HellaSwag (10-shot) | 72.03 |
|
| 375 |
+
| MMLU (5-shot) | 34.91 |
|
| 376 |
+
| TruthfulQA (0-shot) | 36.85 |
|
| 377 |
+
| Winogrande (5-shot) | 64.09 |
|
| 378 |
+
| GSM8K (5-shot) | 0.0 |
|
| 379 |
+
| DROP (3-shot) | 23.66 |
|