Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
text-generation-inference
Instructions to use Dampfinchen/Llama-3-8B-Ultra-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dampfinchen/Llama-3-8B-Ultra-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dampfinchen/Llama-3-8B-Ultra-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Dampfinchen/Llama-3-8B-Ultra-Instruct") model = AutoModelForMultimodalLM.from_pretrained("Dampfinchen/Llama-3-8B-Ultra-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Dampfinchen/Llama-3-8B-Ultra-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dampfinchen/Llama-3-8B-Ultra-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dampfinchen/Llama-3-8B-Ultra-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Dampfinchen/Llama-3-8B-Ultra-Instruct
- SGLang
How to use Dampfinchen/Llama-3-8B-Ultra-Instruct 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 "Dampfinchen/Llama-3-8B-Ultra-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dampfinchen/Llama-3-8B-Ultra-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Dampfinchen/Llama-3-8B-Ultra-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dampfinchen/Llama-3-8B-Ultra-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Dampfinchen/Llama-3-8B-Ultra-Instruct with Docker Model Runner:
docker model run hf.co/Dampfinchen/Llama-3-8B-Ultra-Instruct
Adding Evaluation Results
#1
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,11 +1,114 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
- Undi95/Meta-Llama-3-8B-Instruct-hf
|
| 4 |
library_name: transformers
|
| 5 |
tags:
|
| 6 |
- mergekit
|
| 7 |
- merge
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
# Llama-3-8B-Ultra-Instruct
|
| 11 |
|
|
@@ -91,4 +194,17 @@ name: Llama-3-8B-Ultra-Instruct
|
|
| 91 |
{input}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
| 92 |
|
| 93 |
{output}<|eot_id|>
|
| 94 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: llama3
|
|
|
|
| 3 |
library_name: transformers
|
| 4 |
tags:
|
| 5 |
- mergekit
|
| 6 |
- merge
|
| 7 |
+
base_model:
|
| 8 |
+
- Undi95/Meta-Llama-3-8B-Instruct-hf
|
| 9 |
+
model-index:
|
| 10 |
+
- name: Llama-3-8B-Ultra-Instruct
|
| 11 |
+
results:
|
| 12 |
+
- task:
|
| 13 |
+
type: text-generation
|
| 14 |
+
name: Text Generation
|
| 15 |
+
dataset:
|
| 16 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
| 17 |
+
type: ai2_arc
|
| 18 |
+
config: ARC-Challenge
|
| 19 |
+
split: test
|
| 20 |
+
args:
|
| 21 |
+
num_few_shot: 25
|
| 22 |
+
metrics:
|
| 23 |
+
- type: acc_norm
|
| 24 |
+
value: 64.59
|
| 25 |
+
name: normalized accuracy
|
| 26 |
+
source:
|
| 27 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=elinas/Llama-3-8B-Ultra-Instruct
|
| 28 |
+
name: Open LLM Leaderboard
|
| 29 |
+
- task:
|
| 30 |
+
type: text-generation
|
| 31 |
+
name: Text Generation
|
| 32 |
+
dataset:
|
| 33 |
+
name: HellaSwag (10-Shot)
|
| 34 |
+
type: hellaswag
|
| 35 |
+
split: validation
|
| 36 |
+
args:
|
| 37 |
+
num_few_shot: 10
|
| 38 |
+
metrics:
|
| 39 |
+
- type: acc_norm
|
| 40 |
+
value: 81.63
|
| 41 |
+
name: normalized accuracy
|
| 42 |
+
source:
|
| 43 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=elinas/Llama-3-8B-Ultra-Instruct
|
| 44 |
+
name: Open LLM Leaderboard
|
| 45 |
+
- task:
|
| 46 |
+
type: text-generation
|
| 47 |
+
name: Text Generation
|
| 48 |
+
dataset:
|
| 49 |
+
name: MMLU (5-Shot)
|
| 50 |
+
type: cais/mmlu
|
| 51 |
+
config: all
|
| 52 |
+
split: test
|
| 53 |
+
args:
|
| 54 |
+
num_few_shot: 5
|
| 55 |
+
metrics:
|
| 56 |
+
- type: acc
|
| 57 |
+
value: 68.32
|
| 58 |
+
name: accuracy
|
| 59 |
+
source:
|
| 60 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=elinas/Llama-3-8B-Ultra-Instruct
|
| 61 |
+
name: Open LLM Leaderboard
|
| 62 |
+
- task:
|
| 63 |
+
type: text-generation
|
| 64 |
+
name: Text Generation
|
| 65 |
+
dataset:
|
| 66 |
+
name: TruthfulQA (0-shot)
|
| 67 |
+
type: truthful_qa
|
| 68 |
+
config: multiple_choice
|
| 69 |
+
split: validation
|
| 70 |
+
args:
|
| 71 |
+
num_few_shot: 0
|
| 72 |
+
metrics:
|
| 73 |
+
- type: mc2
|
| 74 |
+
value: 52.8
|
| 75 |
+
source:
|
| 76 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=elinas/Llama-3-8B-Ultra-Instruct
|
| 77 |
+
name: Open LLM Leaderboard
|
| 78 |
+
- task:
|
| 79 |
+
type: text-generation
|
| 80 |
+
name: Text Generation
|
| 81 |
+
dataset:
|
| 82 |
+
name: Winogrande (5-shot)
|
| 83 |
+
type: winogrande
|
| 84 |
+
config: winogrande_xl
|
| 85 |
+
split: validation
|
| 86 |
+
args:
|
| 87 |
+
num_few_shot: 5
|
| 88 |
+
metrics:
|
| 89 |
+
- type: acc
|
| 90 |
+
value: 76.95
|
| 91 |
+
name: accuracy
|
| 92 |
+
source:
|
| 93 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=elinas/Llama-3-8B-Ultra-Instruct
|
| 94 |
+
name: Open LLM Leaderboard
|
| 95 |
+
- task:
|
| 96 |
+
type: text-generation
|
| 97 |
+
name: Text Generation
|
| 98 |
+
dataset:
|
| 99 |
+
name: GSM8k (5-shot)
|
| 100 |
+
type: gsm8k
|
| 101 |
+
config: main
|
| 102 |
+
split: test
|
| 103 |
+
args:
|
| 104 |
+
num_few_shot: 5
|
| 105 |
+
metrics:
|
| 106 |
+
- type: acc
|
| 107 |
+
value: 70.36
|
| 108 |
+
name: accuracy
|
| 109 |
+
source:
|
| 110 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=elinas/Llama-3-8B-Ultra-Instruct
|
| 111 |
+
name: Open LLM Leaderboard
|
| 112 |
---
|
| 113 |
# Llama-3-8B-Ultra-Instruct
|
| 114 |
|
|
|
|
| 194 |
{input}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
| 195 |
|
| 196 |
{output}<|eot_id|>
|
| 197 |
+
```
|
| 198 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 199 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_elinas__Llama-3-8B-Ultra-Instruct)
|
| 200 |
+
|
| 201 |
+
| Metric |Value|
|
| 202 |
+
|---------------------------------|----:|
|
| 203 |
+
|Avg. |69.11|
|
| 204 |
+
|AI2 Reasoning Challenge (25-Shot)|64.59|
|
| 205 |
+
|HellaSwag (10-Shot) |81.63|
|
| 206 |
+
|MMLU (5-Shot) |68.32|
|
| 207 |
+
|TruthfulQA (0-shot) |52.80|
|
| 208 |
+
|Winogrande (5-shot) |76.95|
|
| 209 |
+
|GSM8k (5-shot) |70.36|
|
| 210 |
+
|