Instructions to use maicomputer/alpaca-native with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maicomputer/alpaca-native with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="maicomputer/alpaca-native")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("maicomputer/alpaca-native") model = AutoModelForCausalLM.from_pretrained("maicomputer/alpaca-native") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use maicomputer/alpaca-native with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "maicomputer/alpaca-native" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maicomputer/alpaca-native", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/maicomputer/alpaca-native
- SGLang
How to use maicomputer/alpaca-native 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 "maicomputer/alpaca-native" \ --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": "maicomputer/alpaca-native", "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 "maicomputer/alpaca-native" \ --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": "maicomputer/alpaca-native", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use maicomputer/alpaca-native with Docker Model Runner:
docker model run hf.co/maicomputer/alpaca-native
Commit ·
c9f05a8
1
Parent(s): cc7773c
Adding Evaluation Results
Browse filesThis is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr
The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card.
If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussions
README.md
CHANGED
|
@@ -43,4 +43,17 @@ torchrun --nproc_per_node=4 --master_port=3045 train.py \
|
|
| 43 |
--fsdp "shard_grad_op auto_wrap" \
|
| 44 |
--fsdp_transformer_layer_cls_to_wrap 'LLaMADecoderLayer' \
|
| 45 |
--tf32 True --report_to="wandb"
|
| 46 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
--fsdp "shard_grad_op auto_wrap" \
|
| 44 |
--fsdp_transformer_layer_cls_to_wrap 'LLaMADecoderLayer' \
|
| 45 |
--tf32 True --report_to="wandb"
|
| 46 |
+
```
|
| 47 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 48 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_chavinlo__alpaca-native)
|
| 49 |
+
|
| 50 |
+
| Metric | Value |
|
| 51 |
+
|-----------------------|---------------------------|
|
| 52 |
+
| Avg. | 41.96 |
|
| 53 |
+
| ARC (25-shot) | 52.3 |
|
| 54 |
+
| HellaSwag (10-shot) | 77.09 |
|
| 55 |
+
| MMLU (5-shot) | 41.6 |
|
| 56 |
+
| TruthfulQA (0-shot) | 37.58 |
|
| 57 |
+
| Winogrande (5-shot) | 69.46 |
|
| 58 |
+
| GSM8K (5-shot) | 1.44 |
|
| 59 |
+
| DROP (3-shot) | 14.23 |
|