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.
Nemotron-3.5-Parse / docs /serving.md
emelryan's picture
Refresh Parse model card, examples and DFlash2 performance guides
73acd66 verified
|
Raw History Blame Contribute Delete
2.81 kB

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.