Text Generation
Transformers
Safetensors
English
gemma2
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use YeonwooSung/Neos-Gemma-2-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YeonwooSung/Neos-Gemma-2-9b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="YeonwooSung/Neos-Gemma-2-9b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("YeonwooSung/Neos-Gemma-2-9b") model = AutoModelForCausalLM.from_pretrained("YeonwooSung/Neos-Gemma-2-9b", 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 YeonwooSung/Neos-Gemma-2-9b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "YeonwooSung/Neos-Gemma-2-9b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YeonwooSung/Neos-Gemma-2-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/YeonwooSung/Neos-Gemma-2-9b
- SGLang
How to use YeonwooSung/Neos-Gemma-2-9b 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 "YeonwooSung/Neos-Gemma-2-9b" \ --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": "YeonwooSung/Neos-Gemma-2-9b", "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 "YeonwooSung/Neos-Gemma-2-9b" \ --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": "YeonwooSung/Neos-Gemma-2-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use YeonwooSung/Neos-Gemma-2-9b with Docker Model Runner:
docker model run hf.co/YeonwooSung/Neos-Gemma-2-9b
Yeonwoo Sung commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
tags: []
|
| 4 |
model-index:
|
| 5 |
- name: Neos-Gemma-2-9b
|
| 6 |
results:
|
|
@@ -17,7 +16,8 @@ model-index:
|
|
| 17 |
value: 58.76
|
| 18 |
name: strict accuracy
|
| 19 |
source:
|
| 20 |
-
url:
|
|
|
|
| 21 |
name: Open LLM Leaderboard
|
| 22 |
- task:
|
| 23 |
type: text-generation
|
|
@@ -32,7 +32,8 @@ model-index:
|
|
| 32 |
value: 35.64
|
| 33 |
name: normalized accuracy
|
| 34 |
source:
|
| 35 |
-
url:
|
|
|
|
| 36 |
name: Open LLM Leaderboard
|
| 37 |
- task:
|
| 38 |
type: text-generation
|
|
@@ -47,7 +48,8 @@ model-index:
|
|
| 47 |
value: 8.23
|
| 48 |
name: exact match
|
| 49 |
source:
|
| 50 |
-
url:
|
|
|
|
| 51 |
name: Open LLM Leaderboard
|
| 52 |
- task:
|
| 53 |
type: text-generation
|
|
@@ -62,7 +64,8 @@ model-index:
|
|
| 62 |
value: 9.73
|
| 63 |
name: acc_norm
|
| 64 |
source:
|
| 65 |
-
url:
|
|
|
|
| 66 |
name: Open LLM Leaderboard
|
| 67 |
- task:
|
| 68 |
type: text-generation
|
|
@@ -77,7 +80,8 @@ model-index:
|
|
| 77 |
value: 5.79
|
| 78 |
name: acc_norm
|
| 79 |
source:
|
| 80 |
-
url:
|
|
|
|
| 81 |
name: Open LLM Leaderboard
|
| 82 |
- task:
|
| 83 |
type: text-generation
|
|
@@ -94,8 +98,15 @@ model-index:
|
|
| 94 |
value: 33.12
|
| 95 |
name: accuracy
|
| 96 |
source:
|
| 97 |
-
url:
|
|
|
|
| 98 |
name: Open LLM Leaderboard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
---
|
| 100 |
|
| 101 |
# Model Card for Model ID
|
|
@@ -122,5 +133,4 @@ Detailed results can be found [here](https://huggingface.co/datasets/open-llm-le
|
|
| 122 |
|MATH Lvl 5 (4-Shot)| 8.23|
|
| 123 |
|GPQA (0-shot) | 9.73|
|
| 124 |
|MuSR (0-shot) | 5.79|
|
| 125 |
-
|MMLU-PRO (5-shot) |33.12|
|
| 126 |
-
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
|
|
|
| 3 |
model-index:
|
| 4 |
- name: Neos-Gemma-2-9b
|
| 5 |
results:
|
|
|
|
| 16 |
value: 58.76
|
| 17 |
name: strict accuracy
|
| 18 |
source:
|
| 19 |
+
url: >-
|
| 20 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=BlackBeenie/Neos-Gemma-2-9b
|
| 21 |
name: Open LLM Leaderboard
|
| 22 |
- task:
|
| 23 |
type: text-generation
|
|
|
|
| 32 |
value: 35.64
|
| 33 |
name: normalized accuracy
|
| 34 |
source:
|
| 35 |
+
url: >-
|
| 36 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=BlackBeenie/Neos-Gemma-2-9b
|
| 37 |
name: Open LLM Leaderboard
|
| 38 |
- task:
|
| 39 |
type: text-generation
|
|
|
|
| 48 |
value: 8.23
|
| 49 |
name: exact match
|
| 50 |
source:
|
| 51 |
+
url: >-
|
| 52 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=BlackBeenie/Neos-Gemma-2-9b
|
| 53 |
name: Open LLM Leaderboard
|
| 54 |
- task:
|
| 55 |
type: text-generation
|
|
|
|
| 64 |
value: 9.73
|
| 65 |
name: acc_norm
|
| 66 |
source:
|
| 67 |
+
url: >-
|
| 68 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=BlackBeenie/Neos-Gemma-2-9b
|
| 69 |
name: Open LLM Leaderboard
|
| 70 |
- task:
|
| 71 |
type: text-generation
|
|
|
|
| 80 |
value: 5.79
|
| 81 |
name: acc_norm
|
| 82 |
source:
|
| 83 |
+
url: >-
|
| 84 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=BlackBeenie/Neos-Gemma-2-9b
|
| 85 |
name: Open LLM Leaderboard
|
| 86 |
- task:
|
| 87 |
type: text-generation
|
|
|
|
| 98 |
value: 33.12
|
| 99 |
name: accuracy
|
| 100 |
source:
|
| 101 |
+
url: >-
|
| 102 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=BlackBeenie/Neos-Gemma-2-9b
|
| 103 |
name: Open LLM Leaderboard
|
| 104 |
+
license: apache-2.0
|
| 105 |
+
language:
|
| 106 |
+
- en
|
| 107 |
+
base_model:
|
| 108 |
+
- google/gemma-2-9b-it
|
| 109 |
+
pipeline_tag: text-generation
|
| 110 |
---
|
| 111 |
|
| 112 |
# Model Card for Model ID
|
|
|
|
| 133 |
|MATH Lvl 5 (4-Shot)| 8.23|
|
| 134 |
|GPQA (0-shot) | 9.73|
|
| 135 |
|MuSR (0-shot) | 5.79|
|
| 136 |
+
|MMLU-PRO (5-shot) |33.12|
|
|
|