Text Generation
Transformers
Safetensors
qwen3_5
qwen3.5
korean
reasoning
thinking
sft
k-ai
conversational
Instructions to use Anserwise/AWAXIS-Think-27b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anserwise/AWAXIS-Think-27b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Anserwise/AWAXIS-Think-27b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("Anserwise/AWAXIS-Think-27b") model = AutoModelForCausalLM.from_pretrained("Anserwise/AWAXIS-Think-27b") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Anserwise/AWAXIS-Think-27b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Anserwise/AWAXIS-Think-27b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Anserwise/AWAXIS-Think-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Anserwise/AWAXIS-Think-27b
- SGLang
How to use Anserwise/AWAXIS-Think-27b 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 "Anserwise/AWAXIS-Think-27b" \ --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": "Anserwise/AWAXIS-Think-27b", "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 "Anserwise/AWAXIS-Think-27b" \ --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": "Anserwise/AWAXIS-Think-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Anserwise/AWAXIS-Think-27b with Docker Model Runner:
docker model run hf.co/Anserwise/AWAXIS-Think-27b
Update README
Browse files
README.md
CHANGED
|
@@ -11,9 +11,95 @@ tags:
|
|
| 11 |
- korean
|
| 12 |
- reasoning
|
| 13 |
- thinking
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
pipeline_tag: text-generation
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
-
# AWAXIS-Think-27b
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
- korean
|
| 12 |
- reasoning
|
| 13 |
- thinking
|
| 14 |
+
- sft
|
| 15 |
+
- k-ai
|
| 16 |
+
base_model:
|
| 17 |
+
- FINAL-Bench/Darwin-27B-Opus
|
| 18 |
pipeline_tag: text-generation
|
| 19 |
+
library_name: transformers
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# AWAXIS-Think-27b
|
| 23 |
|
| 24 |
+
[FINAL-Bench/Darwin-27B-Opus](https://huggingface.co/FINAL-Bench/Darwin-27B-Opus) ๊ธฐ๋ฐ, ํ๊ตญ์ด ํนํ ๊ณ ํ์ง SFT๋ฅผ ์ํํ ์ถ๋ก ๋ชจ๋ธ์
๋๋ค.
|
| 25 |
+
|
| 26 |
+
## Method
|
| 27 |
+
|
| 28 |
+
- **Base Model**: [Darwin-27B-Opus](https://huggingface.co/FINAL-Bench/Darwin-27B-Opus) (Qwen3.5-27B family)
|
| 29 |
+
- **Korean SFT**: ํ๊ตญ์ด ๋ฌธํ, ์ญ์ฌ, ๋ฒ๋ฅ , ๊ฒฝ์ , ์ฌํ, ์ง๋ฆฌ ๋ฑ ํ๊ตญ ํนํ ์ง์ ์ค์ฌ์ ๊ณ ํ์ง instruction ๋ฐ์ดํฐ๋ก Supervised Fine-Tuning ์ํ
|
| 30 |
+
- **Thinking Mode**: `<think>` ํ๊ทธ๋ฅผ ํตํ Chain-of-Thought ๋จ๊ณ์ ์ถ๋ก ์ง์
|
| 31 |
+
|
| 32 |
+
## Benchmark
|
| 33 |
+
|
| 34 |
+
| Benchmark | Score |
|
| 35 |
+
|---|---|
|
| 36 |
+
| CLIcK (Korean Cultural & Linguistic Knowledge) | **81.0%** |
|
| 37 |
+
| KMMLU-Pro (Korean MMLU Professional) | **74.0%** |
|
| 38 |
+
|
| 39 |
+
## Model Specifications
|
| 40 |
+
|
| 41 |
+
| Property | Value |
|
| 42 |
+
|---|---|
|
| 43 |
+
| **Architecture** | Qwen3.5 Hybrid (GatedDeltaNet + Attention, 64 layers) |
|
| 44 |
+
| **Parameters** | ~27B |
|
| 45 |
+
| **Hidden Size** | 5120 |
|
| 46 |
+
| **Intermediate Size** | 16384 |
|
| 47 |
+
| **Context Length** | 262,144 tokens |
|
| 48 |
+
| **Precision** | BF16 |
|
| 49 |
+
| **Vocab Size** | 248,320 |
|
| 50 |
+
| **Thinking** | Supported (`<think>` tags) |
|
| 51 |
+
| **License** | Apache 2.0 |
|
| 52 |
+
|
| 53 |
+
## Usage
|
| 54 |
+
|
| 55 |
+
> **Requirements**: `transformers >= 4.57.0`
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 59 |
+
import torch
|
| 60 |
+
|
| 61 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 62 |
+
"Anserwise/AWAXIS-Think-27b",
|
| 63 |
+
torch_dtype=torch.bfloat16,
|
| 64 |
+
device_map="auto",
|
| 65 |
+
trust_remote_code=True
|
| 66 |
+
)
|
| 67 |
+
tokenizer = AutoTokenizer.from_pretrained("Anserwise/AWAXIS-Think-27b")
|
| 68 |
+
|
| 69 |
+
messages = [{"role": "user", "content": "์กฐ์ ์๋์ ๊ณผ๊ฑฐ์ ๋์ ๋ํด ์ค๋ช
ํด์ฃผ์ธ์."}]
|
| 70 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 71 |
+
inputs = tokenizer(text, return_tensors="pt").to(model.device)
|
| 72 |
+
outputs = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
|
| 73 |
+
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
### vLLM
|
| 77 |
+
|
| 78 |
+
```bash
|
| 79 |
+
vllm serve Anserwise/AWAXIS-Think-27b \
|
| 80 |
+
--enforce-eager \
|
| 81 |
+
--max-model-len 32768 \
|
| 82 |
+
--dtype bfloat16
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
## Features
|
| 86 |
+
|
| 87 |
+
- Darwin-27B-Opus์ ๊ฐ๋ ฅํ ์ถ๋ก ๋ฅ๋ ฅ ๊ณ์น
|
| 88 |
+
- ํ๊ตญ์ด ๋ฌธํ, ์ญ์ฌ, ๋ฒ๋ฅ , ๊ฒฝ์ , ์ฌํ ๋ฑ ํ๊ตญ ํนํ ์ง์ ๊ฐํ
|
| 89 |
+
- Thinking mode๋ฅผ ํตํ ๋จ๊ณ์ ์ฌ๊ณ ์ถ๋ก
|
| 90 |
+
- ๋ค๊ตญ์ด ์ง์ (ํ๊ตญ์ด, ์์ด, ์ผ๋ณธ์ด, ์ค๊ตญ์ด)
|
| 91 |
+
- 262K ์ปจํ
์คํธ ๊ธธ์ด ์ง์
|
| 92 |
+
|
| 93 |
+
## Training
|
| 94 |
+
|
| 95 |
+
| Item | Details |
|
| 96 |
+
|---|---|
|
| 97 |
+
| **Base Model** | [FINAL-Bench/Darwin-27B-Opus](https://huggingface.co/FINAL-Bench/Darwin-27B-Opus) |
|
| 98 |
+
| **Method** | Korean-specialized Supervised Fine-Tuning |
|
| 99 |
+
| **Data** | ํ๊ตญ์ด ๋ฌธํยท์ง์ ์ค์ฌ ๊ณ ํ์ง instruction ๋ฐ์ดํฐ |
|
| 100 |
+
| **Developer** | [Anserwise](https://huggingface.co/Anserwise) |
|
| 101 |
+
|
| 102 |
+
## Acknowledgements
|
| 103 |
+
|
| 104 |
+
- [FINAL-Bench](https://huggingface.co/FINAL-Bench) โ Darwin-27B-Opus base model
|
| 105 |
+
- [Qwen Team](https://huggingface.co/Qwen) โ Qwen3.5 architecture
|