Run this model with HF Jobs
Run mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT 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 to fine-tune https://huggingface.co/mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT. 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/mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT 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/mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT. 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.
Instructions to use mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run # (or pass its name right after the repo id). litert-lm run \ --from-huggingface-repo=mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT \ --prompt="Write me a poem"
- LiteRT
How to use mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
DeepSeek-V4-Pro-Qwen3.5-9B โ LiteRT-LM
This repository is a conversion of Jackrong/DeepSeek-V4-Pro-Qwen3.5-9B to LiteRT-LM: two files with the same mostly int8 weights, one for LiteRT-LM 0.20.0 and one for 0.19.x. On a Mac (Apple M4 Max) GPU, the 0.19.x file decodes at 50.48 tok/s with LiteRT-LM 0.19.2.
The files hold only the text part of the author's checkpoint, so they take no image input. The model thinks before it answers by default, and the files set a 4,096-token context.
The two files
DeepSeek-V4-Pro-Qwen3.5-9B_int8_gpu_composite_v0200.litertlm(9,169,043,456 bytes), for LiteRT-LM 0.20.0. On a Mac, it ran with LiteRT-LM 0.20.0 on the GPU and the CPU. It has not been run on a phone.DeepSeek-V4-Pro-Qwen3.5-9B_int8_gpu_composite_v0190.litertlm(9,168,846,848 bytes), for LiteRT-LM 0.19.x. On a Mac, it ran with LiteRT-LM 0.19.2 on the GPU and the CPU, and with 0.20.0 on the CPU. On 2026-11-24, it ran on a Pixel 9 Pro (Tensor G4, 16 GB) GPU, with LiteRT-LM v0.19.0 built for Android from its source at commit771b06e1.
Run it
With uv installed (the first run downloads the file):
# LiteRT-LM 0.20.0: the _v0200 file
# GPU
uvx --from litert-lm==0.20.0 litert-lm run --from-huggingface-repo=mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT DeepSeek-V4-Pro-Qwen3.5-9B_int8_gpu_composite_v0200.litertlm --backend gpu --cache no --prompt "What is the capital of France? Answer in one word."
# CPU
uvx --from litert-lm==0.20.0 litert-lm run --from-huggingface-repo=mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT DeepSeek-V4-Pro-Qwen3.5-9B_int8_gpu_composite_v0200.litertlm --backend cpu --prompt "What is the capital of France? Answer in one word."
# LiteRT-LM 0.19.x: the _v0190 file
# GPU
uvx --from litert-lm==0.19.2 litert-lm run --from-huggingface-repo=mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT DeepSeek-V4-Pro-Qwen3.5-9B_int8_gpu_composite_v0190.litertlm --backend gpu --cache no --prompt "What is the capital of France? Answer in one word."
# CPU
uvx --from litert-lm==0.19.2 litert-lm run --from-huggingface-repo=mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT DeepSeek-V4-Pro-Qwen3.5-9B_int8_gpu_composite_v0190.litertlm --backend cpu --prompt "What is the capital of France? Answer in one word."
Both LiteRT-LM versions need Python 3.10 or newer. For a downloaded file, give its path, ./<file>, in place of --from-huggingface-repo=โฆ <file>. On this prompt, the CLI printed the thought between [thought] and [/thought], ending with Paris.cw, then the answer, Paris. Keep the LiteRT-LM version in each command.
With a local copy of either file, the CPU command wrote a 7,974,599,104-byte XNNPACK cache file next to it, and the GPU command, with --cache no, wrote nothing next to it.
On the Pixel 9 Pro, each short prompt ran with this command of the LiteRT-LM v0.19.0 Android build, with its shared libraries in the same folder:
cd <folder>; LD_LIBRARY_PATH=<folder> <folder>/litert_lm_main --backend=gpu --model_path=<file> --input_prompt_file=<prompt_file>
checks.md says how the build was made and set up.
On the Pixel 9 Pro's OpenCL GPU, the first run of the _v0190 file wrote a weight cache of 8,961,875,984 bytes and a program cache of 36,761,816 bytes next to it, so on that phone the file and its GPU caches took about twice the file's size in storage.
Each later run found both caches at its start and initialized in 19 to 42 s, against 160 s in the first run; it wrote neither cache, so the program cache file did not grow.
When it does not work
- The
_v0190file on the GPU of LiteRT-LM 0.20.0. This file keeps its short-convolution state channels-first, and LiteRT #11565 makes the GPU accept that state channels-last only. On a Mac, the GPU of LiteRT-LM 0.20.0 refused the file:litert-lm runprintedAn error occurredand exited with status 0. With 0.20.0, use the_v0200file. - The
_v0200file on LiteRT-LM 0.19.x. On a Mac with LiteRT-LM 0.19.2, it printed unrelated characters and no answer on the GPU, with exit status 0, and answered Paris on the CPU. With 0.19.x, use the_v0190file. - Other phones. On a Pixel 11 Pro (16 GB), the
_v0190file's GPU run was stopped before it answered, when the phone's available memory fell to 0.59 GB, below the 0.61 GB at which that run was set to stop. On the Pixel 9 Pro, after closing background apps, the available memory was 11.66 to 11.87 GB before the file's GPU runs and 0.43 GB at its lowest during them, so the files are not expected to fit on the GPU of an 8 GB phone. No other phone has been measured, and the files are not verified on an iPhone (iOS). No phone has run them on the CPU. - Galaxy S26. The int8 files were not started on the Galaxy S26 (Snapdragon, SM8850): that phone restarted during the GPU warm-up of another 8B-class int8 file, so we do not start files of this size on it.
- Other LiteRT-LM versions. Neither file was run on LiteRT-LM 0.19.0 or 0.19.1 from PyPI, or on any release before 0.19.0. On a Pixel 8a, the GPU of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) with a Qwen3-0.6B file whose weights are stored in a separate TFLiteWeights section, as these files' are (LiteRT-LM #3986).
Answers compared with the author's model
On the first 100 questions of the GSM8K test split, each file answered 96 right, as many as the author's bf16 model.
Eight short questions, "What is 17 times 23?" and a three-turn name recall passed with each file on the Mac GPU and CPU. On the Pixel 9 Pro GPU, the _v0190 file answered its 15 short prompts right. The prompts, the settings and the counts behind each result are in checks.md.
Speed
Mac (Apple M4 Max) GPU on 2026-11-24, the _v0190 file, LiteRT-LM 0.19.2:
litert-lm benchmark <file> --backend gpu -p 1024 -d 256 --max-num-tokens 4096 --runs 3 --cache no
| Prefill (1,024 tokens) | Decode (256 tokens) | Time to first token | Peak footprint |
|---|---|---|---|
| 796.47 tok/s | 50.48 tok/s | 1.31 s | 10 GiB |
The _v0200 file's speed has not been measured.
Speed still being tuned (updates follow).
Known runtime issues
Long requests can fill the context with thinking. On a 1,357-token request for 25 numbered items, neither file gave an answer on the Mac GPU or CPU: the _v0190 file thought until its 4,096-token context was full, as did the author's bf16 model capped to the same 4,096 tokens. The CLI's --thinking false and --thinking-budget <tokens> were not tried on the 25-item request.
A second prefill after each reply with a thought. With filter_channel_content_from_kv_cache, on by default, LiteRT-LM drops the thought from the KV cache by rewinding to before the user's message and prefilling the message and the reply again. On the Pixel 9 Pro, the benchmark info printed it as a second prefill turn: read the prompt's prefill speed from the first.
Create one Engine per conversation. A new conversation opened on an Engine that served another can continue from the old state of this model's recurrent GatedDeltaNet layers (LiteRT-LM #3165, seen with other models). LiteRT-LM 0.20.0 contains the commit that starts a new sequence from a zeroed state, e1f86b05; it was not tested with these files.
Replies that take over 10 minutes. With other models on LiteRT-LM 0.18.1 and 0.19.0, a reply still generating after 10 minutes failed with DEADLINE_EXCEEDED in the blocking send_message, and the generation left running could crash the process. v0.20.0's source keeps the same 10-minute default timeout, and 0.19.2 and 0.20.0 were not checked. On a slow device, use the streaming send_message_async or a lower max_output_tokens.
After a message that does not fit, start a new conversation. With other models on LiteRT-LM 0.18.1, 0.19.1 and 0.19.2, every later message in such a conversation failed too, the next one with Task failed with state: 7.
A download that was cut short is used again. The CLI keeps the incomplete file in ~/.litert-lm/cache/huggingface/mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT/ and uses it on later runs, which with other files failed with a bus error or too large for file size. Delete that file and run the command again.
Tool calls were not run with these files. Their metadata declares the Qwen3.5 tool-call format and supports_function_calling: true. Two cases where LiteRT-LM 0.19.2's prompt differs from the author's template are in checks.md.
Mac GPU, repeatability of long outputs: not checked. With other Qwen3.5-4B files, long replies there differed from run to run and broke long code.
How it was made
Exported from the author's checkpoint by litert-torch at 65aafa49 with two of its files changed, an int8 recipe that keeps 48 small weights in float32, and --apply_gpu_composites=True, then packed again with new metadata. The _v0200 file is the _v0190 file with its short convolutions rewritten to channels-last. checks.md has the details.
- The files declare fp32 GPU activations (
prefer_activation_type: fp32). - Chat template: the author's, with three edits. Unchanged, it makes LiteRT-LM 0.19.2 stop on a tool result, break its rule that each turn's prompt starts with the previous one, and abort the process on a conversation preface with no messages.
- The metadata's
pad_token,<|vision_pad|>(id 248055), is the id the graph's prefill mask compares, so the slots the runtime pads in a prefill chunk are masked. - This export reorders each query and key head's dimensions, and the query / key norm weights must carry that reordering exactly once: all 16 in each of the 7 signatures do.
License
Apache-2.0, the license of the author's model.
- Downloads last month
- 130
Model tree for mlboydaisuke/DeepSeek-V4-Pro-Qwen3.5-9B-LiteRT
Base model
Qwen/Qwen3.5-9B-Base