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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Anserwise/AWAXIS-Think-27b") model = AutoModelForMultimodalLM.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 transformers requirement to >=5.5.4 to fix qwen3_5_text loading error
Browse files
README.md
CHANGED
|
@@ -23,6 +23,19 @@ library_name: transformers
|
|
| 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)
|
|
@@ -52,7 +65,7 @@ library_name: transformers
|
|
| 52 |
|
| 53 |
## Usage
|
| 54 |
|
| 55 |
-
> **Requirements**: `transformers >=
|
| 56 |
|
| 57 |
```python
|
| 58 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
@@ -62,7 +75,6 @@ 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 |
|
|
|
|
| 23 |
|
| 24 |
[FINAL-Bench/Darwin-27B-Opus](https://huggingface.co/FINAL-Bench/Darwin-27B-Opus) ๊ธฐ๋ฐ, ํ๊ตญ์ด ํนํ ๊ณ ํ์ง SFT๋ฅผ ์ํํ ์ถ๋ก ๋ชจ๋ธ์
๋๋ค.
|
| 25 |
|
| 26 |
+
> โ ๏ธ **Requirements / Loading ์ฃผ์**
|
| 27 |
+
> ์ด ๋ชจ๋ธ์ `model_type: qwen3_5_text` (Qwen3.5 ํ์ด๋ธ๋ฆฌ๋ ์ํคํ
์ฒ)๋ฅผ ์ฌ์ฉํฉ๋๋ค.
|
| 28 |
+
> **`transformers >= 5.5.4` ์ด์** ์์๋ง ์ ์ ๋ก๋๋ฉ๋๋ค.
|
| 29 |
+
>
|
| 30 |
+
> ```bash
|
| 31 |
+
> pip install --upgrade "transformers>=5.5.4"
|
| 32 |
+
> # ๋๋ ์ต์ ๊ฐ๋ฐํ
|
| 33 |
+
> pip install "transformers @ git+https://github.com/huggingface/transformers.git@main"
|
| 34 |
+
> ```
|
| 35 |
+
>
|
| 36 |
+
> ๊ตฌ๋ฒ์ transformers์์ ๋ํ๋๋ `model_type 'qwen3_5_text'๋ฅผ ์ธ์ํ์ง ๋ชปํจ` ์ค๋ฅ๋
|
| 37 |
+
> ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ฏธ์
๋ฐ์ดํธ๋ก ์ธํ ๊ฒ์ด๋ฉฐ, ์ ๋ช
๋ น์ผ๋ก ํด๊ฒฐ๋ฉ๋๋ค.
|
| 38 |
+
|
| 39 |
## Method
|
| 40 |
|
| 41 |
- **Base Model**: [Darwin-27B-Opus](https://huggingface.co/FINAL-Bench/Darwin-27B-Opus) (Qwen3.5-27B family)
|
|
|
|
| 65 |
|
| 66 |
## Usage
|
| 67 |
|
| 68 |
+
> **Requirements**: `transformers >= 5.5.4`
|
| 69 |
|
| 70 |
```python
|
| 71 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
| 75 |
"Anserwise/AWAXIS-Think-27b",
|
| 76 |
torch_dtype=torch.bfloat16,
|
| 77 |
device_map="auto",
|
|
|
|
| 78 |
)
|
| 79 |
tokenizer = AutoTokenizer.from_pretrained("Anserwise/AWAXIS-Think-27b")
|
| 80 |
|