Instructions to use rombodawg/LosslessMegaCoder-llama2-13b-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rombodawg/LosslessMegaCoder-llama2-13b-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rombodawg/LosslessMegaCoder-llama2-13b-mini")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rombodawg/LosslessMegaCoder-llama2-13b-mini") model = AutoModelForCausalLM.from_pretrained("rombodawg/LosslessMegaCoder-llama2-13b-mini") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rombodawg/LosslessMegaCoder-llama2-13b-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rombodawg/LosslessMegaCoder-llama2-13b-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rombodawg/LosslessMegaCoder-llama2-13b-mini", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rombodawg/LosslessMegaCoder-llama2-13b-mini
- SGLang
How to use rombodawg/LosslessMegaCoder-llama2-13b-mini 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 "rombodawg/LosslessMegaCoder-llama2-13b-mini" \ --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": "rombodawg/LosslessMegaCoder-llama2-13b-mini", "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 "rombodawg/LosslessMegaCoder-llama2-13b-mini" \ --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": "rombodawg/LosslessMegaCoder-llama2-13b-mini", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rombodawg/LosslessMegaCoder-llama2-13b-mini with Docker Model Runner:
docker model run hf.co/rombodawg/LosslessMegaCoder-llama2-13b-mini
Commit ·
84f1d49
1
Parent(s): 31f7e2c
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
|
@@ -82,4 +82,17 @@ Link for the filtered dataset used to make this model are bellow:
|
|
| 82 |
|
| 83 |
The original posting for this model was uploaded at the link bellow.
|
| 84 |
|
| 85 |
-
- https://huggingface.co/andreaskoepf/llama2-13b-megacode2_min100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
The original posting for this model was uploaded at the link bellow.
|
| 84 |
|
| 85 |
+
- https://huggingface.co/andreaskoepf/llama2-13b-megacode2_min100
|
| 86 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 87 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_rombodawg__LosslessMegaCoder-llama2-13b-mini)
|
| 88 |
+
|
| 89 |
+
| Metric | Value |
|
| 90 |
+
|-----------------------|---------------------------|
|
| 91 |
+
| Avg. | 49.92 |
|
| 92 |
+
| ARC (25-shot) | 60.58 |
|
| 93 |
+
| HellaSwag (10-shot) | 81.26 |
|
| 94 |
+
| MMLU (5-shot) | 57.92 |
|
| 95 |
+
| TruthfulQA (0-shot) | 48.89 |
|
| 96 |
+
| Winogrande (5-shot) | 76.95 |
|
| 97 |
+
| GSM8K (5-shot) | 15.92 |
|
| 98 |
+
| DROP (3-shot) | 7.89 |
|