Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
physics
science
reasoning
math
qwen3.5
conversational
Instructions to use FirstPrinciplesLabs/quark with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FirstPrinciplesLabs/quark with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="FirstPrinciplesLabs/quark") 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("FirstPrinciplesLabs/quark") model = AutoModelForMultimodalLM.from_pretrained("FirstPrinciplesLabs/quark", 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 FirstPrinciplesLabs/quark with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FirstPrinciplesLabs/quark" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FirstPrinciplesLabs/quark", "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/FirstPrinciplesLabs/quark
- SGLang
How to use FirstPrinciplesLabs/quark 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 "FirstPrinciplesLabs/quark" \ --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": "FirstPrinciplesLabs/quark", "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 "FirstPrinciplesLabs/quark" \ --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": "FirstPrinciplesLabs/quark", "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 FirstPrinciplesLabs/quark with Docker Model Runner:
docker model run hf.co/FirstPrinciplesLabs/quark
Commit History
2 days ago
-
Simplify vLLM lead-in
Verified signature57bb2cc -
Add Transformers Python example to Usage
Verified signaturee06240b -
Add Intended use section
Verified signature7f5699e
3 days ago
-
Add HLE vs model size plots (Pareto front, 7-10.5B)
Verified signatureHLE text-only accuracy vs total parameters; Quark measured by FirstPrinciples, others by Artificial Analysis (Nov 2026).07f5950
4 days ago
-
Update README.md
Verified signature151510a -
Describe benchmark decontamination (13-gram overlap) in training data
Verified signatureMethod from fptrain src/data/decontam.py: word 13-grams, drop at >= 50% overlap with any benchmark question, boilerplate 13-grams ignored, full benchmark sets.f491b03 -
Describe solution filtering as rejection sampling
Verified signature02352ec -
Show per-request throughput only in MacBook concurrency table
Verified signature3bad1a3 -
Add concurrent-request llama.cpp throughput on MacBook Pro
Verified signatureQ8_0 on MacBook Pro M4 16 GB: per-request and total token/s for 1, 2 and 4 concurrent requests.6669a0d -
Add Qwen3.5-9B HLE score from Artificial Analysis
Verified signatureQwen does not report HLE for Qwen3.5-9B; 14.9 is Artificial Analysis's measurement (reasoning mode), marked with a footnote.ac2bbf0 -
Add Qwen3.5-9B to the open-model comparison table
Verified signatureGPQA Diamond 81.7 as reported on the Qwen3.5-9B model card; AIME 2025 and HLE not reported there.da5180e -
Add Ollama usage for the Q8_0 model
Verified signatureAdds instructions for running FirstPrinciples/quark-q8 on Ollama.725cb1d -
Update README.md
Verified signatureedb8ddd -
Update README.md
Verified signature3e16858 -
Upload quark_banner_final.png
Verified signatured55f4e9 -
Link to quark_quantized_weight_only-Q8_0
Matthew Tchouikine4620245
5 days ago
-
Link to the renamed quark-int8 repo
Matthew Tchouikineff47980 -
Update README.md
Verified signature935908a -
README: call the 8-bit GGUF Q8_0 (model weights quantized to 8 bits) instead of int8
Verified signature10fa12c -
README: mention the int8 version in the intro and Usage
Verified signaturebd96215 -
README: new Quark banner
Verified signature9e7a8f4 -
clean up model card
Matthew Tchouikineb373146 -
README: Quark banner
Verified signatureee399ef -
Add GGUF results and speed (llama.cpp, vLLM)
Matthew Tchouikine4d98655 -
README: example (AIME 2025 II #15, Quark vs Qwen3.5-9B), Ollama in Usage, Theo in the intro
Verified signature03c78ed
9 days ago
-
README: fix comparison table separator
Verified signaturec4f8f78 -
README: remove cut-off columns
Verified signature8907ae7 -
Update README.md
Verified signature2720954
10 days ago
-
Update README.md
Verified signature19c9738
15 days ago
-
Update README.md
Verified signatureeditse28c0d4 -
Update README.md
Verified signature14b1ea6 -
Model card: Theo-Quark series and Theo collaborator
Verified signature787bc74 -
Model card: add cut-off rates at 131K
Verified signature31552ff -
Model card: drop the Qwen3-8B source note
Verified signature148075c -
Restore your 20:48 edits; add EvalScope note
Verified signature96c32f4 -
Model card: note benchmarks were run with EvalScope
Verified signature3538f83 -
Update README.md
Verified signatureda9b8d3 -
Model card: general description of the training data
Verified signaturea524ab1 -
Update README.md
Verified signature97da9ad -
Theo-Quark: SFT of Qwen3.5-9B (epoch 6) and model card
Verified signature6b4406a -
initial commit
Verified signature90bb8c4