Text Generation
Transformers
Safetensors
Korean
English
gemma4
image-text-to-text
awaxis
think
gemma
gemma-4
reasoning
distillation
darwin-derived
vidraft
darwin-crossbreed
conversational
Eval Results (legacy)
Instructions to use Anserwise/AWAXIS-Think-31B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anserwise/AWAXIS-Think-31B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Anserwise/AWAXIS-Think-31B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("Anserwise/AWAXIS-Think-31B") model = AutoModelForImageTextToText.from_pretrained("Anserwise/AWAXIS-Think-31B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] 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-31B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Anserwise/AWAXIS-Think-31B" # 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-31B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Anserwise/AWAXIS-Think-31B
- SGLang
How to use Anserwise/AWAXIS-Think-31B 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-31B" \ --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-31B", "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-31B" \ --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-31B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Anserwise/AWAXIS-Think-31B with Docker Model Runner:
docker model run hf.co/Anserwise/AWAXIS-Think-31B
Fix: remove unsloth-injected config keys; align transformers_version to 5.5.0 for broader loader compatibility
Browse files- config.json +2 -5
config.json
CHANGED
|
@@ -14,7 +14,6 @@
|
|
| 14 |
"eos_token_id": 106,
|
| 15 |
"image_token_id": 258880,
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
-
"model_name": "unsloth/gemma-4-31B-it",
|
| 18 |
"model_type": "gemma4",
|
| 19 |
"pad_token_id": 0,
|
| 20 |
"text_config": {
|
|
@@ -128,9 +127,7 @@
|
|
| 128 |
"vocab_size_per_layer_input": 262144
|
| 129 |
},
|
| 130 |
"tie_word_embeddings": true,
|
| 131 |
-
"transformers_version": "5.5.
|
| 132 |
-
"unsloth_fixed": true,
|
| 133 |
-
"unsloth_version": "2026.4.4",
|
| 134 |
"video_token_id": 258884,
|
| 135 |
"vision_config": {
|
| 136 |
"_name_or_path": "",
|
|
@@ -176,4 +173,4 @@
|
|
| 176 |
"use_clipped_linears": false
|
| 177 |
},
|
| 178 |
"vision_soft_tokens_per_image": 280
|
| 179 |
-
}
|
|
|
|
| 14 |
"eos_token_id": 106,
|
| 15 |
"image_token_id": 258880,
|
| 16 |
"initializer_range": 0.02,
|
|
|
|
| 17 |
"model_type": "gemma4",
|
| 18 |
"pad_token_id": 0,
|
| 19 |
"text_config": {
|
|
|
|
| 127 |
"vocab_size_per_layer_input": 262144
|
| 128 |
},
|
| 129 |
"tie_word_embeddings": true,
|
| 130 |
+
"transformers_version": "5.5.0",
|
|
|
|
|
|
|
| 131 |
"video_token_id": 258884,
|
| 132 |
"vision_config": {
|
| 133 |
"_name_or_path": "",
|
|
|
|
| 173 |
"use_clipped_linears": false
|
| 174 |
},
|
| 175 |
"vision_soft_tokens_per_image": 280
|
| 176 |
+
}
|