Instructions to use rombodawg/LosslessMegaCoder-llama2-7b-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rombodawg/LosslessMegaCoder-llama2-7b-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rombodawg/LosslessMegaCoder-llama2-7b-mini")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rombodawg/LosslessMegaCoder-llama2-7b-mini") model = AutoModelForCausalLM.from_pretrained("rombodawg/LosslessMegaCoder-llama2-7b-mini") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rombodawg/LosslessMegaCoder-llama2-7b-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-7b-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-7b-mini", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rombodawg/LosslessMegaCoder-llama2-7b-mini
- SGLang
How to use rombodawg/LosslessMegaCoder-llama2-7b-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-7b-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-7b-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-7b-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-7b-mini", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rombodawg/LosslessMegaCoder-llama2-7b-mini with Docker Model Runner:
docker model run hf.co/rombodawg/LosslessMegaCoder-llama2-7b-mini
Adding Evaluation Results
#2
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -91,4 +91,17 @@ Link for the filtered dataset used to make this model are bellow:
|
|
| 91 |
|
| 92 |
The original posting for this model was uploaded at the link bellow.
|
| 93 |
|
| 94 |
-
- https://huggingface.co/andreaskoepf/llama2-7b-megacode2_min100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
The original posting for this model was uploaded at the link bellow.
|
| 93 |
|
| 94 |
+
- https://huggingface.co/andreaskoepf/llama2-7b-megacode2_min100
|
| 95 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 96 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_rombodawg__LosslessMegaCoder-llama2-7b-mini)
|
| 97 |
+
|
| 98 |
+
| Metric | Value |
|
| 99 |
+
|-----------------------|---------------------------|
|
| 100 |
+
| Avg. | 45.33 |
|
| 101 |
+
| ARC (25-shot) | 53.5 |
|
| 102 |
+
| HellaSwag (10-shot) | 77.38 |
|
| 103 |
+
| MMLU (5-shot) | 49.72 |
|
| 104 |
+
| TruthfulQA (0-shot) | 45.77 |
|
| 105 |
+
| Winogrande (5-shot) | 74.03 |
|
| 106 |
+
| GSM8K (5-shot) | 9.55 |
|
| 107 |
+
| DROP (3-shot) | 7.34 |
|