Text Generation
Transformers
PyTorch
qwen2
Generated from Trainer
conversational
text-generation-inference
Instructions to use Edens-Gate/Henbane-7b-attempt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Edens-Gate/Henbane-7b-attempt2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Edens-Gate/Henbane-7b-attempt2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Edens-Gate/Henbane-7b-attempt2") model = AutoModelForCausalLM.from_pretrained("Edens-Gate/Henbane-7b-attempt2", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Edens-Gate/Henbane-7b-attempt2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Edens-Gate/Henbane-7b-attempt2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Edens-Gate/Henbane-7b-attempt2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Edens-Gate/Henbane-7b-attempt2
- SGLang
How to use Edens-Gate/Henbane-7b-attempt2 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 "Edens-Gate/Henbane-7b-attempt2" \ --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": "Edens-Gate/Henbane-7b-attempt2", "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 "Edens-Gate/Henbane-7b-attempt2" \ --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": "Edens-Gate/Henbane-7b-attempt2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Edens-Gate/Henbane-7b-attempt2 with Docker Model Runner:
docker model run hf.co/Edens-Gate/Henbane-7b-attempt2
Adding Evaluation Results
#1
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
-
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
| 7 |
model-index:
|
| 8 |
- name: outputs/Qwen7b
|
| 9 |
results: []
|
|
@@ -190,3 +190,17 @@ The following hyperparameters were used during training:
|
|
| 190 |
- Pytorch 2.4.0+cu121
|
| 191 |
- Datasets 2.19.1
|
| 192 |
- Tokenizers 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
+
base_model: Qwen/Qwen2-7B
|
| 7 |
model-index:
|
| 8 |
- name: outputs/Qwen7b
|
| 9 |
results: []
|
|
|
|
| 190 |
- Pytorch 2.4.0+cu121
|
| 191 |
- Datasets 2.19.1
|
| 192 |
- Tokenizers 0.19.1
|
| 193 |
+
|
| 194 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
|
| 195 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_Delta-Vector__Henbane-7b-attempt2)
|
| 196 |
+
|
| 197 |
+
| Metric |Value|
|
| 198 |
+
|-------------------|----:|
|
| 199 |
+
|Avg. |23.47|
|
| 200 |
+
|IFEval (0-Shot) |41.57|
|
| 201 |
+
|BBH (3-Shot) |30.87|
|
| 202 |
+
|MATH Lvl 5 (4-Shot)|20.69|
|
| 203 |
+
|GPQA (0-shot) | 5.37|
|
| 204 |
+
|MuSR (0-shot) | 8.70|
|
| 205 |
+
|MMLU-PRO (5-shot) |33.64|
|
| 206 |
+
|