Text Generation
Transformers
Safetensors
Thai
English
qwen2
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use Tsunami-th/Tsunami-0.5-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tsunami-th/Tsunami-0.5-7B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Tsunami-th/Tsunami-0.5-7B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Tsunami-th/Tsunami-0.5-7B-Instruct") model = AutoModelForCausalLM.from_pretrained("Tsunami-th/Tsunami-0.5-7B-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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Tsunami-th/Tsunami-0.5-7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tsunami-th/Tsunami-0.5-7B-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": "Tsunami-th/Tsunami-0.5-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Tsunami-th/Tsunami-0.5-7B-Instruct
- SGLang
How to use Tsunami-th/Tsunami-0.5-7B-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 "Tsunami-th/Tsunami-0.5-7B-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": "Tsunami-th/Tsunami-0.5-7B-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 "Tsunami-th/Tsunami-0.5-7B-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": "Tsunami-th/Tsunami-0.5-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Tsunami-th/Tsunami-0.5-7B-Instruct with Docker Model Runner:
docker model run hf.co/Tsunami-th/Tsunami-0.5-7B-Instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,10 +20,11 @@ model-index:
|
|
| 20 |
num_few_shot: 0
|
| 21 |
metrics:
|
| 22 |
- type: inst_level_strict_acc and prompt_level_strict_acc
|
| 23 |
-
value: 74
|
| 24 |
name: strict accuracy
|
| 25 |
source:
|
| 26 |
-
url:
|
|
|
|
| 27 |
name: Open LLM Leaderboard
|
| 28 |
- task:
|
| 29 |
type: text-generation
|
|
@@ -38,7 +39,8 @@ model-index:
|
|
| 38 |
value: 36.14
|
| 39 |
name: normalized accuracy
|
| 40 |
source:
|
| 41 |
-
url:
|
|
|
|
| 42 |
name: Open LLM Leaderboard
|
| 43 |
- task:
|
| 44 |
type: text-generation
|
|
@@ -53,7 +55,8 @@ model-index:
|
|
| 53 |
value: 0.15
|
| 54 |
name: exact match
|
| 55 |
source:
|
| 56 |
-
url:
|
|
|
|
| 57 |
name: Open LLM Leaderboard
|
| 58 |
- task:
|
| 59 |
type: text-generation
|
|
@@ -68,7 +71,8 @@ model-index:
|
|
| 68 |
value: 7.83
|
| 69 |
name: acc_norm
|
| 70 |
source:
|
| 71 |
-
url:
|
|
|
|
| 72 |
name: Open LLM Leaderboard
|
| 73 |
- task:
|
| 74 |
type: text-generation
|
|
@@ -83,7 +87,8 @@ model-index:
|
|
| 83 |
value: 12.21
|
| 84 |
name: acc_norm
|
| 85 |
source:
|
| 86 |
-
url:
|
|
|
|
| 87 |
name: Open LLM Leaderboard
|
| 88 |
- task:
|
| 89 |
type: text-generation
|
|
@@ -100,8 +105,10 @@ model-index:
|
|
| 100 |
value: 37.92
|
| 101 |
name: accuracy
|
| 102 |
source:
|
| 103 |
-
url:
|
|
|
|
| 104 |
name: Open LLM Leaderboard
|
|
|
|
| 105 |
---
|
| 106 |
|
| 107 |
<img src="./Tsunami.webp" alt="Tsunami Model" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
|
@@ -186,5 +193,4 @@ Detailed results can be found [here](https://huggingface.co/datasets/open-llm-le
|
|
| 186 |
|MATH Lvl 5 (4-Shot)| 0.15|
|
| 187 |
|GPQA (0-shot) | 7.83|
|
| 188 |
|MuSR (0-shot) |12.21|
|
| 189 |
-
|MMLU-PRO (5-shot) |37.92|
|
| 190 |
-
|
|
|
|
| 20 |
num_few_shot: 0
|
| 21 |
metrics:
|
| 22 |
- type: inst_level_strict_acc and prompt_level_strict_acc
|
| 23 |
+
value: 74
|
| 24 |
name: strict accuracy
|
| 25 |
source:
|
| 26 |
+
url: >-
|
| 27 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=Tsunami-th/Tsunami-0.5-7B-Instruct
|
| 28 |
name: Open LLM Leaderboard
|
| 29 |
- task:
|
| 30 |
type: text-generation
|
|
|
|
| 39 |
value: 36.14
|
| 40 |
name: normalized accuracy
|
| 41 |
source:
|
| 42 |
+
url: >-
|
| 43 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=Tsunami-th/Tsunami-0.5-7B-Instruct
|
| 44 |
name: Open LLM Leaderboard
|
| 45 |
- task:
|
| 46 |
type: text-generation
|
|
|
|
| 55 |
value: 0.15
|
| 56 |
name: exact match
|
| 57 |
source:
|
| 58 |
+
url: >-
|
| 59 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=Tsunami-th/Tsunami-0.5-7B-Instruct
|
| 60 |
name: Open LLM Leaderboard
|
| 61 |
- task:
|
| 62 |
type: text-generation
|
|
|
|
| 71 |
value: 7.83
|
| 72 |
name: acc_norm
|
| 73 |
source:
|
| 74 |
+
url: >-
|
| 75 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=Tsunami-th/Tsunami-0.5-7B-Instruct
|
| 76 |
name: Open LLM Leaderboard
|
| 77 |
- task:
|
| 78 |
type: text-generation
|
|
|
|
| 87 |
value: 12.21
|
| 88 |
name: acc_norm
|
| 89 |
source:
|
| 90 |
+
url: >-
|
| 91 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=Tsunami-th/Tsunami-0.5-7B-Instruct
|
| 92 |
name: Open LLM Leaderboard
|
| 93 |
- task:
|
| 94 |
type: text-generation
|
|
|
|
| 105 |
value: 37.92
|
| 106 |
name: accuracy
|
| 107 |
source:
|
| 108 |
+
url: >-
|
| 109 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=Tsunami-th/Tsunami-0.5-7B-Instruct
|
| 110 |
name: Open LLM Leaderboard
|
| 111 |
+
license: apache-2.0
|
| 112 |
---
|
| 113 |
|
| 114 |
<img src="./Tsunami.webp" alt="Tsunami Model" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
|
|
|
| 193 |
|MATH Lvl 5 (4-Shot)| 0.15|
|
| 194 |
|GPQA (0-shot) | 7.83|
|
| 195 |
|MuSR (0-shot) |12.21|
|
| 196 |
+
|MMLU-PRO (5-shot) |37.92|
|
|
|