Instructions to use dnotitia/DNA3.1-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dnotitia/DNA3.1-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="dnotitia/DNA3.1-27B") 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("dnotitia/DNA3.1-27B") model = AutoModelForMultimodalLM.from_pretrained("dnotitia/DNA3.1-27B", 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 dnotitia/DNA3.1-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dnotitia/DNA3.1-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dnotitia/DNA3.1-27B", "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/dnotitia/DNA3.1-27B
- SGLang
How to use dnotitia/DNA3.1-27B 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 "dnotitia/DNA3.1-27B" \ --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": "dnotitia/DNA3.1-27B", "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 "dnotitia/DNA3.1-27B" \ --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": "dnotitia/DNA3.1-27B", "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 dnotitia/DNA3.1-27B with Docker Model Runner:
docker model run hf.co/dnotitia/DNA3.1-27B
Commit History
26 days ago
-
Update model.safetensors.index.json
Verified signatureaee8534
-
Upload dna-3.1-logo.png
Verified signaturec8da28d
-
Update README.md
Verified signatureb95283b -
docs: restructure the comparison bullets to match the chart
Verified signatureFour bullets: Persona Identification, Uncensorship, Repetition Reduction, Hallucination Resistance. Dropped Language Confusion Reduction: measured at .670 against the Qwen3.8-27B base's .686, so it is on par rather than an improvement and does not belong in a list of gains. Filled in the previously empty hallucination bullet and renamed it to match the chart panel. 'another common failure mode' -> 'a common failure mode', since the clause it referred back to is gone.89440b0 -
docs: add DNA3.1-27B vs Qwen3.8-27B comparison chart
Verified signatureSix panels, all higher-is-better: Persona Identification, Uncensorship, Repetition Reduction, Non-existent Entity Refusal (thinking ON / OFF), Hallucination Resistance. Refusal panels plot HalluLens refusal_rate (= 1 - false acceptance rate) so every panel points the same way. The README already referenced this filename; the file was missing until now.7d905b0
-
Update README.md
Verified signature3123b8f -
Update README.md
Verified signatured8c271e -
Update README.md
Verified signaturedeb1629 -
weights: DNA3.0 recipe + abstention think-only, epoch 6 (checkpoint-810)
Verified signatureoutputs/qwen3.8_27b_dna30recipe_abst_thinkonly/checkpoint-810 (step 810 = epoch 6 of 6, final epoch). Base Qwen3.8-27B. lr 0.8e-6, max_grad_norm 0.3, effective batch 128, max_length 8192, cosine_with_min_lr 0.1. Weight shards only; every other file is byte-identical to the previous revision and was left untouched.35a3449
-
weights: DNA3.0 recipe + abstention think-only, epoch 5 (checkpoint-675)
Verified signatureoutputs/qwen3.8_27b_dna30recipe_abst_thinkonly/checkpoint-675 (step 675 = epoch 5 of 6). Base Qwen3.8-27B. lr 0.8e-6, max_grad_norm 0.3, effective batch 128, max_length 8192, cosine_with_min_lr 0.1. Weight shards only; every other file is byte-identical to the previous revision and was left untouched.7f8bc2d
-
Update README.md
Verified signature9374ffe -
Update README.md
Verified signaturecefa664 -
Add video preprocessor config
Verified signature24ab388 -
Add image preprocessor config
Verified signature3d3ef75 -
Upload checkpoint-392 model artifacts
Verified signaturedfcdd0e -
Update README.md
Verified signature0599c77 -
Update README.md
Verified signature72d8ff0 -
initial commit
Verified signature41fda37