Image-Text-to-Text
Transformers
Safetensors
qwen3_5_moe
qwen3.6
Mixture of Experts
lora
merged
antidoom
bf16
conversational
Instructions to use N8Programs/Qwen3.6-35B-A3B-AntiLoop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use N8Programs/Qwen3.6-35B-A3B-AntiLoop with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="N8Programs/Qwen3.6-35B-A3B-AntiLoop") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("N8Programs/Qwen3.6-35B-A3B-AntiLoop") model = AutoModelForMultimodalLM.from_pretrained("N8Programs/Qwen3.6-35B-A3B-AntiLoop") 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 N8Programs/Qwen3.6-35B-A3B-AntiLoop with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "N8Programs/Qwen3.6-35B-A3B-AntiLoop" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "N8Programs/Qwen3.6-35B-A3B-AntiLoop", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/N8Programs/Qwen3.6-35B-A3B-AntiLoop
- SGLang
How to use N8Programs/Qwen3.6-35B-A3B-AntiLoop 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 "N8Programs/Qwen3.6-35B-A3B-AntiLoop" \ --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": "N8Programs/Qwen3.6-35B-A3B-AntiLoop", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "N8Programs/Qwen3.6-35B-A3B-AntiLoop" \ --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": "N8Programs/Qwen3.6-35B-A3B-AntiLoop", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use N8Programs/Qwen3.6-35B-A3B-AntiLoop with Docker Model Runner:
docker model run hf.co/N8Programs/Qwen3.6-35B-A3B-AntiLoop
| { | |
| "model": "Qwen/Qwen3.6-35B-A3B", | |
| "sft_file": "data/antidoom_sft_train_v2.jsonl", | |
| "kl_file": "data/antidoom_kl_anchor.jsonl", | |
| "output_dir": "checkpoints/qwen36_35b_antidoom_kl_lora_r32_v2", | |
| "epochs": 1, | |
| "max_steps": -1, | |
| "max_seq_len": 6144, | |
| "kl_max_seq_len": 4096, | |
| "ce_weight": 0.9, | |
| "kl_weight": 0.1, | |
| "lr": 5e-05, | |
| "warmup_ratio": 0.03, | |
| "weight_decay": 0.0, | |
| "grad_clip": 1.0, | |
| "lora_r": 32, | |
| "lora_alpha": 64, | |
| "lora_dropout": 0.0, | |
| "target_preset": "attn", | |
| "seed": 0, | |
| "loss_chunk": 4096, | |
| "kl_chunk": 1024, | |
| "attn_implementation": "sdpa", | |
| "fp8_experts": true, | |
| "fp8_model": "Qwen/Qwen3.6-35B-A3B-FP8", | |
| "no_grad_checkpoint": true, | |
| "log_every": 5, | |
| "wandb_project": "qwen-antidoom", | |
| "wandb_run_name": "kl-sft-r32-e1-openerdiv", | |
| "no_save": false | |
| } |