Run this model with HF Jobs
Run nvidia/Nemotron-3.5-Parse on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/nvidia/Nemotron-3.5-Parse. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nvidia/Nemotron-3.5-Parse on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/nvidia/Nemotron-3.5-Parse. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/nvidia/Nemotron-3.5-Parse. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use nvidia/Nemotron-3.5-Parse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/Nemotron-3.5-Parse with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="nvidia/Nemotron-3.5-Parse", trust_remote_code=True) 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 AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("nvidia/Nemotron-3.5-Parse", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nvidia/Nemotron-3.5-Parse with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nvidia/Nemotron-3.5-Parse" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nvidia/Nemotron-3.5-Parse", "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/nvidia/Nemotron-3.5-Parse
- SGLang
How to use nvidia/Nemotron-3.5-Parse 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 "nvidia/Nemotron-3.5-Parse" \ --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": "nvidia/Nemotron-3.5-Parse", "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 "nvidia/Nemotron-3.5-Parse" \ --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": "nvidia/Nemotron-3.5-Parse", "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 nvidia/Nemotron-3.5-Parse with Docker Model Runner:
docker model run hf.co/nvidia/Nemotron-3.5-Parse
Download docs/serving.md from nvidia/Nemotron-3.5-Parse: direct link, hf CLI and curl.
- Browser
- Download file 2.81 kB
-
https://huggingface.co/nvidia/Nemotron-3.5-Parse/resolve/main/docs/serving.md
- Command line
-
hf download hf://nvidia/Nemotron-3.5-Parse/docs/serving.md
-
curl -L -o serving.md https://huggingface.co/nvidia/Nemotron-3.5-Parse/resolve/main/docs/serving.md
Serve Nemotron 3.5 Parse
Native DFlash2
Download both models together. Use vLLM with native Nemotron Parse and
DFlash2DraftModel support; no model-specific plugin is needed.
hf download nvidia/Nemotron-3.5-Parse --local-dir ./parse35
vllm serve ./parse35 \
--served-model-name nemotron-parse \
--trust-remote-code \
--speculative-config '{"method":"dflash","model":"./parse35/dflash2","num_speculative_tokens":32}'
The speculator path is a local subdirectory, not a second Hub model ID.
Use 8, 16, or 32 speculative tokens to tune for your workload; the length stays
fixed for that server. See performance.
For base inference, omit --speculative-config.
Use the model card's HTTP or Transformers examples.
Transformers does not need the serving plugin and uses normal decoding.
For overlapping document/crop requests, use the downloaded
DocumentParser helpers.
Prompts
TASK_PROMPT = "</s><s><predict_bbox><predict_classes><output_markdown><predict_text_in_pic>"
Use this task string in Transformers and HTTP requests. Preserve the class and
coordinate tokens in generated text for postprocessing. For offline vLLM,
prepend the image placeholder directly: "<pad>" + TASK_PROMPT, with
add_special_tokens=False. Do not insert a newline between them.
The model takes RGB page images; render PDFs to pages first. Coordinates refer to the evaluated image content. The prompt controls request boxes, classes, or plain text; table export formats are chosen after inference.
Throughput tuning
Concurrency is the number of outstanding requests across all stages, not the number of documents. Increase it while observing memory, latency and completed page throughput. Double and triple pass reuse page/crop images, so retain the multimodal processor cache. Prefix caching, batching budgets and draft length can affect different workloads differently.
Use the measured profiles and protocols when reproducing a number. The basic launch command above prioritizes usability; it does not set every benchmarking option. A page that hits its token limit is partial output, even if the benchmark itself finishes successfully.
One-token MTP
MTP weights are included in the target weights. The established MTP serving path uses the repository's serving plugin. Follow the reference installation and MTP command in a separate environment. That guide preserves its pinned reproduction setup. Do not install its serving extras into the native DFlash2 environment. Choose one speculator per server.