Text Generation
Transformers
Safetensors
qwen2
chatml
finetune
gpt4
synthetic data
custom_code
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use aloobun/Reyna-Mini-1.8B-v0.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aloobun/Reyna-Mini-1.8B-v0.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aloobun/Reyna-Mini-1.8B-v0.2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aloobun/Reyna-Mini-1.8B-v0.2", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("aloobun/Reyna-Mini-1.8B-v0.2", trust_remote_code=True, device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aloobun/Reyna-Mini-1.8B-v0.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aloobun/Reyna-Mini-1.8B-v0.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aloobun/Reyna-Mini-1.8B-v0.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aloobun/Reyna-Mini-1.8B-v0.2
- SGLang
How to use aloobun/Reyna-Mini-1.8B-v0.2 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 "aloobun/Reyna-Mini-1.8B-v0.2" \ --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": "aloobun/Reyna-Mini-1.8B-v0.2", "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 "aloobun/Reyna-Mini-1.8B-v0.2" \ --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": "aloobun/Reyna-Mini-1.8B-v0.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use aloobun/Reyna-Mini-1.8B-v0.2 with Docker Model Runner:
docker model run hf.co/aloobun/Reyna-Mini-1.8B-v0.2
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
|
@@ -1,10 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
license_name: tongyi-qianwen-research
|
| 3 |
-
license_link: https://huggingface.co/Qwen/Qwen1.5-1.8B-Chat/raw/main/LICENSE
|
| 4 |
-
library_name: transformers
|
| 5 |
license: other
|
| 6 |
-
|
| 7 |
-
- Locutusque/Hercules-v3.0
|
| 8 |
tags:
|
| 9 |
- chatml
|
| 10 |
- finetune
|
|
@@ -12,6 +8,113 @@ tags:
|
|
| 12 |
- synthetic data
|
| 13 |
- custom_code
|
| 14 |
- qwen2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |

|
|
@@ -93,4 +196,17 @@ op = model.generate(
|
|
| 93 |
>Nature appears to be inherently organized, with patterns and structures that can be observed across different levels of organization. However, the exact mechanisms by which these patterns emerge and evolve remain largely unknown.
|
| 94 |
>The universe seems to be governed by a series of laws and principles known as "laws of physics," such as Newton's laws of motion, electromagnetism, and thermodynamics. These laws govern how matter and energy interact with each other and how they behave over time.
|
| 95 |
>Despite our understanding of these laws, we still struggle to comprehend the underlying mechanisms that allow for the emergence of complex patterns and structures. This is because the universe operates on a scale that is too small for us to observe directly, and therefore we cannot fully understand its internal workings.
|
| 96 |
-
>In summary, while there may be some level of order and structure within the universe, the precise mechanisms governing this order remain largely unknown.<|im_end|>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
license: other
|
| 3 |
+
library_name: transformers
|
|
|
|
| 4 |
tags:
|
| 5 |
- chatml
|
| 6 |
- finetune
|
|
|
|
| 8 |
- synthetic data
|
| 9 |
- custom_code
|
| 10 |
- qwen2
|
| 11 |
+
datasets:
|
| 12 |
+
- Locutusque/Hercules-v3.0
|
| 13 |
+
license_name: tongyi-qianwen-research
|
| 14 |
+
license_link: https://huggingface.co/Qwen/Qwen1.5-1.8B-Chat/raw/main/LICENSE
|
| 15 |
+
model-index:
|
| 16 |
+
- name: Reyna-Mini-1.8B-v0.2
|
| 17 |
+
results:
|
| 18 |
+
- task:
|
| 19 |
+
type: text-generation
|
| 20 |
+
name: Text Generation
|
| 21 |
+
dataset:
|
| 22 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
| 23 |
+
type: ai2_arc
|
| 24 |
+
config: ARC-Challenge
|
| 25 |
+
split: test
|
| 26 |
+
args:
|
| 27 |
+
num_few_shot: 25
|
| 28 |
+
metrics:
|
| 29 |
+
- type: acc_norm
|
| 30 |
+
value: 36.6
|
| 31 |
+
name: normalized accuracy
|
| 32 |
+
source:
|
| 33 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=aloobun/Reyna-Mini-1.8B-v0.2
|
| 34 |
+
name: Open LLM Leaderboard
|
| 35 |
+
- task:
|
| 36 |
+
type: text-generation
|
| 37 |
+
name: Text Generation
|
| 38 |
+
dataset:
|
| 39 |
+
name: HellaSwag (10-Shot)
|
| 40 |
+
type: hellaswag
|
| 41 |
+
split: validation
|
| 42 |
+
args:
|
| 43 |
+
num_few_shot: 10
|
| 44 |
+
metrics:
|
| 45 |
+
- type: acc_norm
|
| 46 |
+
value: 60.19
|
| 47 |
+
name: normalized accuracy
|
| 48 |
+
source:
|
| 49 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=aloobun/Reyna-Mini-1.8B-v0.2
|
| 50 |
+
name: Open LLM Leaderboard
|
| 51 |
+
- task:
|
| 52 |
+
type: text-generation
|
| 53 |
+
name: Text Generation
|
| 54 |
+
dataset:
|
| 55 |
+
name: MMLU (5-Shot)
|
| 56 |
+
type: cais/mmlu
|
| 57 |
+
config: all
|
| 58 |
+
split: test
|
| 59 |
+
args:
|
| 60 |
+
num_few_shot: 5
|
| 61 |
+
metrics:
|
| 62 |
+
- type: acc
|
| 63 |
+
value: 44.75
|
| 64 |
+
name: accuracy
|
| 65 |
+
source:
|
| 66 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=aloobun/Reyna-Mini-1.8B-v0.2
|
| 67 |
+
name: Open LLM Leaderboard
|
| 68 |
+
- task:
|
| 69 |
+
type: text-generation
|
| 70 |
+
name: Text Generation
|
| 71 |
+
dataset:
|
| 72 |
+
name: TruthfulQA (0-shot)
|
| 73 |
+
type: truthful_qa
|
| 74 |
+
config: multiple_choice
|
| 75 |
+
split: validation
|
| 76 |
+
args:
|
| 77 |
+
num_few_shot: 0
|
| 78 |
+
metrics:
|
| 79 |
+
- type: mc2
|
| 80 |
+
value: 41.24
|
| 81 |
+
source:
|
| 82 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=aloobun/Reyna-Mini-1.8B-v0.2
|
| 83 |
+
name: Open LLM Leaderboard
|
| 84 |
+
- task:
|
| 85 |
+
type: text-generation
|
| 86 |
+
name: Text Generation
|
| 87 |
+
dataset:
|
| 88 |
+
name: Winogrande (5-shot)
|
| 89 |
+
type: winogrande
|
| 90 |
+
config: winogrande_xl
|
| 91 |
+
split: validation
|
| 92 |
+
args:
|
| 93 |
+
num_few_shot: 5
|
| 94 |
+
metrics:
|
| 95 |
+
- type: acc
|
| 96 |
+
value: 61.56
|
| 97 |
+
name: accuracy
|
| 98 |
+
source:
|
| 99 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=aloobun/Reyna-Mini-1.8B-v0.2
|
| 100 |
+
name: Open LLM Leaderboard
|
| 101 |
+
- task:
|
| 102 |
+
type: text-generation
|
| 103 |
+
name: Text Generation
|
| 104 |
+
dataset:
|
| 105 |
+
name: GSM8k (5-shot)
|
| 106 |
+
type: gsm8k
|
| 107 |
+
config: main
|
| 108 |
+
split: test
|
| 109 |
+
args:
|
| 110 |
+
num_few_shot: 5
|
| 111 |
+
metrics:
|
| 112 |
+
- type: acc
|
| 113 |
+
value: 31.31
|
| 114 |
+
name: accuracy
|
| 115 |
+
source:
|
| 116 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=aloobun/Reyna-Mini-1.8B-v0.2
|
| 117 |
+
name: Open LLM Leaderboard
|
| 118 |
---
|
| 119 |
|
| 120 |

|
|
|
|
| 196 |
>Nature appears to be inherently organized, with patterns and structures that can be observed across different levels of organization. However, the exact mechanisms by which these patterns emerge and evolve remain largely unknown.
|
| 197 |
>The universe seems to be governed by a series of laws and principles known as "laws of physics," such as Newton's laws of motion, electromagnetism, and thermodynamics. These laws govern how matter and energy interact with each other and how they behave over time.
|
| 198 |
>Despite our understanding of these laws, we still struggle to comprehend the underlying mechanisms that allow for the emergence of complex patterns and structures. This is because the universe operates on a scale that is too small for us to observe directly, and therefore we cannot fully understand its internal workings.
|
| 199 |
+
>In summary, while there may be some level of order and structure within the universe, the precise mechanisms governing this order remain largely unknown.<|im_end|>
|
| 200 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 201 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_aloobun__Reyna-Mini-1.8B-v0.2)
|
| 202 |
+
|
| 203 |
+
| Metric |Value|
|
| 204 |
+
|---------------------------------|----:|
|
| 205 |
+
|Avg. |45.94|
|
| 206 |
+
|AI2 Reasoning Challenge (25-Shot)|36.60|
|
| 207 |
+
|HellaSwag (10-Shot) |60.19|
|
| 208 |
+
|MMLU (5-Shot) |44.75|
|
| 209 |
+
|TruthfulQA (0-shot) |41.24|
|
| 210 |
+
|Winogrande (5-shot) |61.56|
|
| 211 |
+
|GSM8k (5-shot) |31.31|
|
| 212 |
+
|