Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
szl-holdings
doctrine-v11
governed-ai
proposal-only
research
conversational
Instructions to use SZLHOLDINGS/chaski with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SZLHOLDINGS/chaski with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SZLHOLDINGS/chaski") 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("SZLHOLDINGS/chaski") model = AutoModelForMultimodalLM.from_pretrained("SZLHOLDINGS/chaski", 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 SZLHOLDINGS/chaski with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SZLHOLDINGS/chaski" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SZLHOLDINGS/chaski", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SZLHOLDINGS/chaski
- SGLang
How to use SZLHOLDINGS/chaski 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 "SZLHOLDINGS/chaski" \ --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": "SZLHOLDINGS/chaski", "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 "SZLHOLDINGS/chaski" \ --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": "SZLHOLDINGS/chaski", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SZLHOLDINGS/chaski with Docker Model Runner:
docker model run hf.co/SZLHOLDINGS/chaski
feat(adapter): unique Unsloth chaski Courier. Attention-only LoRA — MLP frozen so the runner cannot author the payload.
Browse files
adapter-unsloth/README.md
CHANGED
|
@@ -207,4 +207,4 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 207 |
[More Information Needed]
|
| 208 |
### Framework versions
|
| 209 |
|
| 210 |
-
- PEFT 0.
|
|
|
|
| 207 |
[More Information Needed]
|
| 208 |
### Framework versions
|
| 209 |
|
| 210 |
+
- PEFT 0.22.0
|
adapter-unsloth/adapter_config.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
"alora_invocation_tokens": null,
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"arrow_config": null,
|
|
|
|
| 5 |
"auto_mapping": {
|
| 6 |
"base_model_class": "Qwen3_5ForConditionalGeneration",
|
| 7 |
"parent_library": "transformers.models.qwen3_5.modeling_qwen3_5",
|
|
@@ -16,6 +17,7 @@
|
|
| 16 |
"fan_in_fan_out": false,
|
| 17 |
"inference_mode": true,
|
| 18 |
"init_lora_weights": true,
|
|
|
|
| 19 |
"layer_replication": null,
|
| 20 |
"layers_pattern": null,
|
| 21 |
"layers_to_transform": null,
|
|
@@ -29,12 +31,12 @@
|
|
| 29 |
"modules_to_save": null,
|
| 30 |
"monteclora_config": null,
|
| 31 |
"peft_type": "LORA",
|
| 32 |
-
"peft_version": "0.
|
| 33 |
"qalora_group_size": 16,
|
| 34 |
"r": 8,
|
| 35 |
"rank_pattern": {},
|
| 36 |
"revision": null,
|
| 37 |
-
"target_modules": "(?:.*?(?:language|text).*?(?:self_attn|attention|attn|mixer|mlp|feed_forward|ffn|dense|mixer).*?(?:q_proj|k_proj|v_proj|o_proj))|(?:\\bmodel\\.layers\\.[\\d]{1,}\\.(?:self_attn|attention|attn|mixer|mlp|feed_forward|ffn|dense|mixer)\\.(?:(?:q_proj|k_proj|v_proj|o_proj)))",
|
| 38 |
"target_parameters": null,
|
| 39 |
"task_type": "CAUSAL_LM",
|
| 40 |
"trainable_token_indices": null,
|
|
|
|
| 2 |
"alora_invocation_tokens": null,
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"arrow_config": null,
|
| 5 |
+
"astra_config": null,
|
| 6 |
"auto_mapping": {
|
| 7 |
"base_model_class": "Qwen3_5ForConditionalGeneration",
|
| 8 |
"parent_library": "transformers.models.qwen3_5.modeling_qwen3_5",
|
|
|
|
| 17 |
"fan_in_fan_out": false,
|
| 18 |
"inference_mode": true,
|
| 19 |
"init_lora_weights": true,
|
| 20 |
+
"kasa_config": null,
|
| 21 |
"layer_replication": null,
|
| 22 |
"layers_pattern": null,
|
| 23 |
"layers_to_transform": null,
|
|
|
|
| 31 |
"modules_to_save": null,
|
| 32 |
"monteclora_config": null,
|
| 33 |
"peft_type": "LORA",
|
| 34 |
+
"peft_version": "0.22.0",
|
| 35 |
"qalora_group_size": 16,
|
| 36 |
"r": 8,
|
| 37 |
"rank_pattern": {},
|
| 38 |
"revision": null,
|
| 39 |
+
"target_modules": "(?:.*?(?:language|text).*?(?:self_attn|attention|attn|mixer|mlp|feed_forward|ffn|dense|mixer).*?\\.(?:q_proj|k_proj|v_proj|o_proj))|(?:\\bmodel\\.layers\\.[\\d]{1,}(?!.*\\.experts\\.\\d)\\..*?(?:self_attn|attention|attn|mixer|mlp|feed_forward|ffn|dense|mixer).*?\\.(?:(?:q_proj|k_proj|v_proj|o_proj)))",
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
| 42 |
"trainable_token_indices": null,
|
adapter-unsloth/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2169704
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04ea168c53306098927d74820887d9af8ae2d04db4c9a09695ffe5e8fb472634
|
| 3 |
size 2169704
|
adapter-unsloth/processor_config.json
CHANGED
|
@@ -47,6 +47,7 @@
|
|
| 47 |
0.5
|
| 48 |
],
|
| 49 |
"max_frames": 768,
|
|
|
|
| 50 |
"merge_size": 2,
|
| 51 |
"min_frames": 4,
|
| 52 |
"patch_size": 16,
|
|
|
|
| 47 |
0.5
|
| 48 |
],
|
| 49 |
"max_frames": 768,
|
| 50 |
+
"max_video_tokens": 768,
|
| 51 |
"merge_size": 2,
|
| 52 |
"min_frames": 4,
|
| 53 |
"patch_size": 16,
|
adapter-unsloth/tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
adapter-unsloth/tokenizer_config.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
"errors": "replace",
|
| 11 |
"image_token": "<|image_pad|>",
|
| 12 |
"is_local": false,
|
|
|
|
| 13 |
"model_max_length": 262144,
|
| 14 |
"model_specific_special_tokens": {
|
| 15 |
"audio_bos_token": "<|audio_start|>",
|
|
@@ -25,7 +26,7 @@
|
|
| 25 |
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
"processor_class": "Qwen3VLProcessor",
|
| 27 |
"split_special_tokens": false,
|
| 28 |
-
"tokenizer_class": "
|
| 29 |
"unk_token": null,
|
| 30 |
"video_token": "<|video_pad|>",
|
| 31 |
"vision_bos_token": "<|vision_start|>",
|
|
|
|
| 10 |
"errors": "replace",
|
| 11 |
"image_token": "<|image_pad|>",
|
| 12 |
"is_local": false,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
"model_max_length": 262144,
|
| 15 |
"model_specific_special_tokens": {
|
| 16 |
"audio_bos_token": "<|audio_start|>",
|
|
|
|
| 26 |
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 27 |
"processor_class": "Qwen3VLProcessor",
|
| 28 |
"split_special_tokens": false,
|
| 29 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 30 |
"unk_token": null,
|
| 31 |
"video_token": "<|video_pad|>",
|
| 32 |
"vision_bos_token": "<|vision_start|>",
|