Instructions to use caid-technologies/parti-vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use caid-technologies/parti-vision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="caid-technologies/parti-vision") 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("caid-technologies/parti-vision") model = AutoModelForMultimodalLM.from_pretrained("caid-technologies/parti-vision", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use caid-technologies/parti-vision with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "caid-technologies/parti-vision" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "caid-technologies/parti-vision", "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/caid-technologies/parti-vision
- SGLang
How to use caid-technologies/parti-vision 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 "caid-technologies/parti-vision" \ --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": "caid-technologies/parti-vision", "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 "caid-technologies/parti-vision" \ --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": "caid-technologies/parti-vision", "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" } } ] } ] }' - Unsloth Studio
How to use caid-technologies/parti-vision with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for caid-technologies/parti-vision to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for caid-technologies/parti-vision to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for caid-technologies/parti-vision to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="caid-technologies/parti-vision", max_seq_length=2048, ) - Docker Model Runner
How to use caid-technologies/parti-vision with Docker Model Runner:
docker model run hf.co/caid-technologies/parti-vision
Parti-Vision Base — Qwen3.5-9B
Parti-Vision turns a hardware idea — a sentence, a short brief, even a sketch — into a complete build blueprint.
Tell it what to build — "a USB-powered desk lamp with touch dimming" — and it returns one JSON blueprint: parts list, pin-level wiring, ordered build steps, a costed sourcing table, and an appearance spec with a ready-to-use image-generation prompt. It's a standalone, all-in-one model. By caid-technologies.
Early research preview. For drafting and exploring ideas — not a replacement for real engineering, CAD, or safety review.
Does it actually work?
On brand-new realistic requests, 97% of outputs are valid, machine-checkable blueprints when served with guided decoding (61% with plain decoding; the stock base model: 0%). On held-out training-style prompts: 83% guided / 67% free.
What's "guided decoding"? A standard serving option (guided_json in vLLM, and equivalents in
llama.cpp and most hosted APIs): the server blocks any token that would break the blueprint's JSON
format, so the output always has the right structure. The model still makes every design decision —
the parts, the wiring, the steps, the costs — guided decoding just guarantees the format.
Full methodology and every result — including the tests it doesn't pass yet — are in the technical whitepaper (PDF).
What you can give it
A plain-English request — one or two sentences.
A short document — a brief or notes, pasted into the message:
<your request> --- ATTACHED DOCUMENT: brief.md --- <the document text> --- END DOCUMENT ---A concept image — a hand-drawn sketch or product render, as a regular vision input.
Any combination works; prompt + brief + render is strongest.
PDFs and other files
The model reads text + images only, so put one small conversion layer in front of it — no native PDF/CAD/spreadsheet support is needed:
- PDF → text (the recommended path). Extract the text (e.g. PyMuPDF /
fitz) and drop it into the--- ATTACHED DOCUMENT ---markers above. Text is what actually steers the design. - PDF → image (optional). Render a page to a PNG and pass it on the vision path — useful for diagrams or a concept page, best used alongside the extracted text, not instead of it.
- Keep it short. The model was trained on brief notes (~0.5–2k characters); cap long documents at a few thousand characters and send only the relevant section — a full 50-page report or datasheet mostly wastes context.
- Scanned PDFs have no text layer — use the page image (vision path), or OCR first.
- LaTeX / Markdown / plain text need no conversion — paste the source straight in as the document text.
- CAD files / spreadsheets — export to text (a parts list, a bill of materials) or a rendered view, then attach the same way.
Try it
The model answers in JSON directly — no reasoning preamble to strip.
from unsloth import FastVisionModel
REPO = "caid-technologies/parti-vision"
model, tok = FastVisionModel.from_pretrained(REPO, load_in_4bit=False)
FastVisionModel.for_inference(model)
SYSTEM_PROMPT = (
"You design maker/electronics products. Reply with one JSON object with exactly these "
"10 keys: project, requirements, components, relationships, circuit, fabrication, "
"instructions, appearance, image_generation_prompt, sourcing. Output only the JSON."
)
messages = [
{"role": "system", "content": [{"type": "text", "text": SYSTEM_PROMPT}]},
{"role": "user", "content": [{"type": "text", "text": "Design a USB desk lamp with touch dimming."}]},
]
text = tok.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
inputs = tok(text=text, return_tensors="pt").to("cuda")
out = model.generate(**inputs, max_new_tokens=13000, do_sample=False, repetition_penalty=1.1)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
💡 Blueprints are long: keep max_new_tokens high and the repetition penalty on. To include an
image, add {"type": "image", "image": your_image} to the user content and pass images= to the
tokenizer.
🚀 Serving it for real? Use vLLM with guided_json constrained to the blueprint schema
(guided decoding, explained above) — it takes valid-blueprint rates on unseen prompts from 61%
to **97%**.
Good to know
- English prompts, maker/electronics domain. Off-topic requests still get a blueprint, not a refusal.
- Outputs are drafts, not verified engineering — roughly half have at least one design slip (a pin on the wrong net, costs slightly off, a misordered step). Re-validate in your app, and review before you solder.
- Very long plans can get cut off at the token cap; contradictory or impossible requests can produce confidently wrong blueprints.
Learn more
- 📄 Technical whitepaper (PDF) — models, dataset & pipeline, training config, evaluation methodology, and the complete honest scorecard.
- 💬 Discord community — questions, builds, feedback.
- 🔎 Output contract: one JSON object with exactly 10 top-level keys (
project, requirements, components, relationships, circuit, fabrication, instructions, appearance, image_generation_prompt, sourcing);schema.json+validate.pyin the repo re-check any output.
@misc{parti_vision_base,
title = {Parti-Vision Base: Qwen3.5-9B for multimodal hardware blueprint generation},
author = {Caid Technologies},
year = {2026},
howpublished = {\url{https://huggingface.co/caid-technologies}}
}
Built with Unsloth and 🤗 Transformers / PEFT / TRL.
- Downloads last month
- 219


