Image-Text-to-Text
Transformers
Safetensors
qwen3_5_moe
spinal-cord-stimulation
neuroscience
continued-pretraining
lora
conversational
Instructions to use achuthc1298/llm_scs_3.5_35B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use achuthc1298/llm_scs_3.5_35B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="achuthc1298/llm_scs_3.5_35B") 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("achuthc1298/llm_scs_3.5_35B") model = AutoModelForImageTextToText.from_pretrained("achuthc1298/llm_scs_3.5_35B") 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
- vLLM
How to use achuthc1298/llm_scs_3.5_35B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "achuthc1298/llm_scs_3.5_35B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "achuthc1298/llm_scs_3.5_35B", "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/achuthc1298/llm_scs_3.5_35B
- SGLang
How to use achuthc1298/llm_scs_3.5_35B 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 "achuthc1298/llm_scs_3.5_35B" \ --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": "achuthc1298/llm_scs_3.5_35B", "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 "achuthc1298/llm_scs_3.5_35B" \ --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": "achuthc1298/llm_scs_3.5_35B", "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 achuthc1298/llm_scs_3.5_35B with Docker Model Runner:
docker model run hf.co/achuthc1298/llm_scs_3.5_35B
llm_scs_3.5_35B
Domain-specialized fine-tune of unsloth/Qwen3.5-35B-A3B
(a Qwen3.5 VL MoE: 35B total / ~3B active, 256 experts, hybrid linear+full
attention, with a vision tower) on a corpus of spinal-cord-stimulation (SCS) and
motor-recovery research papers.
This is the merged checkpoint (base + adapter folded in), text + vision,
in BF16 — loadable directly with transformers / vLLM / Unsloth.
Training
- Method: LoRA continued-pretraining, text decoder only (vision tower and MTP head left frozen/untouched).
- Adapted modules: self-attention
q/k/v/o_proj, gated-DeltaNet linear-attn projections, and the always-on shared-expert MLP (310 modules, ~21M params, 0.06% of the model). The 256 routed experts are fused tensors and were not adapted. - Data: 11 markdown papers on epidural/cervical SCS, motor recovery, and stroke rehabilitation, packed into 1024-token sequences.
- Schedule: 2 epochs, LoRA r=16 / α=32, lr 2e-4 cosine, bf16 + gradient checkpointing, effective batch 8. Trained across 2× RTX A6000.
- Result: train loss 1.48, eval loss 1.53 → 1.49.
Notes
- The base model's multi-token-prediction (MTP) head is not included
(
mtp_num_hidden_layers: 0); it is used only for speculative decoding and does not affect generation. - License and intended use follow the base model
unsloth/Qwen3.5-35B-A3B. - Research artifact; not a medical device and not for clinical decision-making.
Usage
from transformers import AutoModelForImageTextToText, AutoProcessor
model = AutoModelForImageTextToText.from_pretrained(
"achuthc1298/llm_scs_3.5_35B", dtype="bfloat16", device_map="auto",
)
proc = AutoProcessor.from_pretrained("achuthc1298/llm_scs_3.5_35B")
- Downloads last month
- 24
Model tree for achuthc1298/llm_scs_3.5_35B
Base model
Qwen/Qwen3.5-35B-A3B-Base Finetuned
Qwen/Qwen3.5-35B-A3B Finetuned
unsloth/Qwen3.5-35B-A3B