Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
qwen3.6
agentic-search
conversational
Instructions to use XYZAILab/XYZ-Aquila-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XYZAILab/XYZ-Aquila-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="XYZAILab/XYZ-Aquila-mini") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("XYZAILab/XYZ-Aquila-mini") model = AutoModelForMultimodalLM.from_pretrained("XYZAILab/XYZ-Aquila-mini", device_map="auto") 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use XYZAILab/XYZ-Aquila-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XYZAILab/XYZ-Aquila-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XYZAILab/XYZ-Aquila-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/XYZAILab/XYZ-Aquila-mini
- SGLang
How to use XYZAILab/XYZ-Aquila-mini 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 "XYZAILab/XYZ-Aquila-mini" \ --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": "XYZAILab/XYZ-Aquila-mini", "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 "XYZAILab/XYZ-Aquila-mini" \ --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": "XYZAILab/XYZ-Aquila-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use XYZAILab/XYZ-Aquila-mini with Docker Model Runner:
docker model run hf.co/XYZAILab/XYZ-Aquila-mini
upload model
Browse files- config.json +122 -0
- model-00001-of-00015.safetensors +3 -0
- model-00002-of-00015.safetensors +3 -0
- model-00003-of-00015.safetensors +3 -0
- model-00004-of-00015.safetensors +3 -0
- model-00005-of-00015.safetensors +3 -0
- model-00006-of-00015.safetensors +3 -0
- model-00007-of-00015.safetensors +3 -0
- model-00008-of-00015.safetensors +3 -0
- model-00009-of-00015.safetensors +3 -0
- model-00010-of-00015.safetensors +3 -0
- model-00011-of-00015.safetensors +3 -0
- model-00012-of-00015.safetensors +3 -0
- model-00013-of-00015.safetensors +3 -0
- model-00014-of-00015.safetensors +3 -0
- model-00015-of-00015.safetensors +3 -0
- model.safetensors.index.json +0 -0
config.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5MoeForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"hidden_size": 2048,
|
| 7 |
+
"image_token_id": 248056,
|
| 8 |
+
"model_type": "qwen3_5_moe",
|
| 9 |
+
"text_config": {
|
| 10 |
+
"attention_bias": false,
|
| 11 |
+
"attention_dropout": 0.0,
|
| 12 |
+
"attn_output_gate": true,
|
| 13 |
+
"bos_token_id": 248044,
|
| 14 |
+
"dtype": "bfloat16",
|
| 15 |
+
"eos_token_id": 248044,
|
| 16 |
+
"full_attention_interval": 4,
|
| 17 |
+
"head_dim": 256,
|
| 18 |
+
"hidden_act": "silu",
|
| 19 |
+
"hidden_size": 2048,
|
| 20 |
+
"initializer_range": 0.02,
|
| 21 |
+
"layer_types": [
|
| 22 |
+
"linear_attention",
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"linear_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"linear_attention",
|
| 53 |
+
"full_attention",
|
| 54 |
+
"linear_attention",
|
| 55 |
+
"linear_attention",
|
| 56 |
+
"linear_attention",
|
| 57 |
+
"full_attention",
|
| 58 |
+
"linear_attention",
|
| 59 |
+
"linear_attention",
|
| 60 |
+
"linear_attention",
|
| 61 |
+
"full_attention"
|
| 62 |
+
],
|
| 63 |
+
"linear_conv_kernel_dim": 4,
|
| 64 |
+
"linear_key_head_dim": 128,
|
| 65 |
+
"linear_num_key_heads": 16,
|
| 66 |
+
"linear_num_value_heads": 32,
|
| 67 |
+
"linear_value_head_dim": 128,
|
| 68 |
+
"mamba_ssm_dtype": "float32",
|
| 69 |
+
"max_position_embeddings": 262144,
|
| 70 |
+
"model_type": "qwen3_5_moe_text",
|
| 71 |
+
"moe_intermediate_size": 512,
|
| 72 |
+
"mtp_num_hidden_layers": 1,
|
| 73 |
+
"mtp_use_dedicated_embeddings": false,
|
| 74 |
+
"num_attention_heads": 16,
|
| 75 |
+
"num_experts": 256,
|
| 76 |
+
"num_experts_per_tok": 8,
|
| 77 |
+
"num_hidden_layers": 40,
|
| 78 |
+
"num_key_value_heads": 2,
|
| 79 |
+
"output_router_logits": false,
|
| 80 |
+
"pad_token_id": null,
|
| 81 |
+
"partial_rotary_factor": 0.25,
|
| 82 |
+
"rms_norm_eps": 1e-06,
|
| 83 |
+
"rope_parameters": {
|
| 84 |
+
"mrope_interleaved": true,
|
| 85 |
+
"mrope_section": [
|
| 86 |
+
11,
|
| 87 |
+
11,
|
| 88 |
+
10
|
| 89 |
+
],
|
| 90 |
+
"partial_rotary_factor": 0.25,
|
| 91 |
+
"rope_theta": 10000000,
|
| 92 |
+
"rope_type": "default"
|
| 93 |
+
},
|
| 94 |
+
"router_aux_loss_coef": 0.001,
|
| 95 |
+
"shared_expert_intermediate_size": 512,
|
| 96 |
+
"tie_word_embeddings": false,
|
| 97 |
+
"use_cache": true,
|
| 98 |
+
"vocab_size": 248320
|
| 99 |
+
},
|
| 100 |
+
"tie_word_embeddings": false,
|
| 101 |
+
"transformers_version": "5.12.1",
|
| 102 |
+
"video_token_id": 248057,
|
| 103 |
+
"vision_config": {
|
| 104 |
+
"deepstack_visual_indexes": [],
|
| 105 |
+
"depth": 27,
|
| 106 |
+
"dtype": "bfloat16",
|
| 107 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 108 |
+
"hidden_size": 1152,
|
| 109 |
+
"in_channels": 3,
|
| 110 |
+
"initializer_range": 0.02,
|
| 111 |
+
"intermediate_size": 4304,
|
| 112 |
+
"model_type": "qwen3_5_moe_vision",
|
| 113 |
+
"num_heads": 16,
|
| 114 |
+
"num_position_embeddings": 2304,
|
| 115 |
+
"out_hidden_size": 2048,
|
| 116 |
+
"patch_size": 16,
|
| 117 |
+
"spatial_merge_size": 2,
|
| 118 |
+
"temporal_patch_size": 2
|
| 119 |
+
},
|
| 120 |
+
"vision_end_token_id": 248054,
|
| 121 |
+
"vision_start_token_id": 248053
|
| 122 |
+
}
|
model-00001-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f25c551453c579b980daec36c4f13f4c2fc4c7e24555247bccd586325d1d9c12
|
| 3 |
+
size 4998182104
|
model-00002-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d69b16612c47a69b53a6cd94739c7d8faa6f3b142bfe5a03e14523e45afe2be7
|
| 3 |
+
size 4999577872
|
model-00003-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:340145ec0d9a0bad1f35ca643264f4c03e64c7dfa72f8dd85483bd2638beff0a
|
| 3 |
+
size 4999577880
|
model-00004-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6861c35899f1922a6bb0c50b29f1d919bf7cd567fa11172ed7def9d7e95d6b4d
|
| 3 |
+
size 4999905080
|
model-00005-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:205d7a73caf11a6d2a50857292b8a03db05961592f131bc8030cd386493096ab
|
| 3 |
+
size 4999580160
|
model-00006-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b4d399ebbe5d72876213f84e531c2ddf56e5112997c3cb0c595cfc7c493b41b
|
| 3 |
+
size 4999580208
|
model-00007-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f3accbde13310732b334307ecddffb0a70b8d73f0d5ce47594d706c2c6dfb01
|
| 3 |
+
size 4999580200
|
model-00008-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1171cfa6f5286954ca6daa4a505ffdf80c7b5a8dec7b7a6294b3f819b9ccaaea
|
| 3 |
+
size 4999906808
|
model-00009-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47ad9b333246a9ba3f538ef52aa29301d7435693bec4dc4065ff8d986f8fd278
|
| 3 |
+
size 4999580160
|
model-00010-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d7528f07929a5c4ebaa31de120d8327b24d4bbd9ee89a053c4240f31ffcb08a
|
| 3 |
+
size 4999580208
|
model-00011-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43028fe145a9f5fccf65b06ad8bc042b0aeb895b160428298b961bda5ae17ebb
|
| 3 |
+
size 4999580200
|
model-00012-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c843570085f3724eb034fe43e49e697a47d278b973df4e5e12f50d3d79cb675
|
| 3 |
+
size 4999906816
|
model-00013-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5afccf0c658e05d127b44a99af20a31fdc5c1293424e79740bb2b73c2e7abb6d
|
| 3 |
+
size 4999580152
|
model-00014-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc36c2dc7ae87ca84d80eb7a0853fc5763ca928309efc2c4473b615af6c7fd66
|
| 3 |
+
size 4207519408
|
model-00015-of-00015.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71db7b9cdd684137f45884140bee8682d6fd4f452f20555a137acbee453c0d78
|
| 3 |
+
size 1017123024
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|