Instructions to use litert-community/InternVL3_5-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/InternVL3_5-4B 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=litert-community/InternVL3_5-4B \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/InternVL3_5-4B 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
- InternVL3.5-4B β LiteRT-LM (on-device Vision-Language Model)
InternVL3.5-4B β LiteRT-LM (on-device Vision-Language Model)
OpenGVLab/InternVL3_5-4B converted to the
LiteRT-LM (.litertlm) format for on-device image+text inference with Google's
LiteRT-LM runtime
(the same runtime that runs litert-community/FastVLM-0.5B). On 2026-11-15 model.litertlm was replaced with a file whose prefill/decode graph is rewritten for the GPU, with every weight unchanged. Outside the dated entries under Conversion notes, "this file" means that file and "the previous file" the one it replaced. On a Galaxy S26 GPU this file decodes 18.7 tokens/s and prefills 1,024 tokens at 195 tokens/s (LiteRT-LM v0.19.0). With the vision encoder on the GPU this file does not answer a picture (on a Mac, a Galaxy S26 and a Pixel 11 Pro); with the vision encoder on the CPU, which is the litert-lm CLI's default for this file, it answered on a Mac and a Galaxy S26. It was run only with LiteRT-LM 0.19.0 to 0.19.2; earlier runtimes were not tried with it.
InternVL3.5-4B is a compact vision-language model: an InternViT vision encoder + pixel-shuffle +
MLP projector feeding a Qwen3-4B language decoder (the newer Qwen3 backbone is what distinguishes
it from the InternVL3-2B build, which used Qwen2.5-1.5B). This file runs it through LiteRT-LM's
fast_vlm multimodal path β give it an image and a question, get a grounded answer, fully on-device.
| File | model.litertlm (~3.00 GB; embedding externalized so sections stay under the iOS mmap limit) |
| Vision | InternViT encoder + pixel-shuffle + MLP projector, int8 weights β single 448Γ448 image β 256 image tokens |
| Decoder | Qwen3-4B, int4 weights (symmetric, blockwise-32 + OCTAV optimal-clipping); input embedding INT8 (externalized section) |
| Context (KV cache) | 2048 |
| Image input | resized to 448Γ448 (ImageNet normalization is baked into the vision encoder) |
| Base model | OpenGVLab/InternVL3_5-4B (Apache-2.0) |
How to use
1. Install the runtime
pip install litert-lm
2. Run it in one command β this downloads the file, encodes your image and answers:
litert-lm run --from-huggingface-repo litert-community/InternVL3_5-4B model.litertlm \
--attachment photo.jpg \
--prompt "Describe this picture in one sentence." --top-k 1
On the COCO photo 000000039769.jpg (640 Γ 480, two tabby cats on a pink blanket) saved as photo.jpg, this file answers:
Two cats are sleeping on a pink couch, with remote controls placed nearby.
This answer came from litert-lm 0.19.2 on a Mac (2026-11-15), in two runs of this file with only the flags above, byte for byte. Each file was given by its local path in place of --from-huggingface-repo β¦: this file as a copy with the same sha256 as the file in this repo, the previous file as downloaded from this repo; the download form of the command was not run with this file. One run of the previous file with the same flags gave "Two cats are sleeping on a pink couch, surrounded by remote controls." With these flags both files run on the CPU with the CLI's default thread count (see the next paragraph); why their replies differ there was not checked. With --backend cpu --vision-backend cpu --cpu-thread-count 1 --cache no --max-num-tokens 2048 added, litert-lm 0.19.0, 0.19.1 and 0.19.2 gave the answer above with both files (2026-11-14).
This file, like the previous one, sets no default backend, so when --backend and --vision-backend are left out, litert-lm 0.19.0 to 0.19.2 run the decoder and the vision encoder on the CPU (unless a backend is set for the model in the CLI's config). With --backend gpu added and --vision-backend still left out, this file answered the picture in one run (on a Mac with litert-lm 0.19.2: "Two cats are sleeping on a pink couch, surrounded by remote controls."). With --backend gpu --vision-backend gpu, neither this file nor the previous file answers a picture on a Mac (litert-lm 0.19.0 to 0.19.2; the reply is An error occurred); with each of these versions the error log names two op types of the vision encoder that the GPU delegate does not take, BROADCAST_TO and GATHER_ND, and prints Hint fully delegated to single delegate is set, but the graph is not fully delegated. On a Galaxy S26 and a Pixel 11 Pro, LiteRT-LM's litert_lm_advanced_main (built from the v0.19.0 source) stops too with the vision encoder on the GPU (see the Galaxy S26 section).
If run stops right after the download with no error message from the CLI (a bus error; exit status 138 on a Mac) or with an error log that contains too large for file size, the downloaded file may be incomplete. The litert-lm CLI (0.14.0 to 0.19.2, and litert-lm-nightly 0.20.0.dev20261112) can keep an incomplete download in ~/.litert-lm/cache/huggingface/litert-community/InternVL3_5-4B/ and uses it again on later runs without checking its size. Delete model.litertlm in that directory and run the command again.
If you downloaded model.litertlm with --from-huggingface-repo before it was replaced on 2026-11-15 (07:38 UTC), delete ~/.litert-lm/cache/huggingface/litert-community/InternVL3_5-4B/model.litertlm, then run the command again. Without deleting it, the litert-lm CLI (0.14.0 to 0.19.2) keeps running the previous file: it uses a file it finds there without checking it against this repo.
Drop --prompt for an interactive chat, and pass --attachment more than once for several images (but see the Known limitation below). litert-lm serve exposes this model as a local OpenAI-compatible API. None of these was tried with this file, and on desktop this file was run on macOS only.
Performance
This file's speed was measured on two phones (the Galaxy S26 and Pixel 11 Pro sections below), not on a Mac. Measured on an earlier file: litert-lm benchmark (litert-lm 0.15.0) on an Apple M4 Max, -p 256 -d 256 --runs 3 (the tool averages three iterations), max-num-tokens 4096 (a run uses 512 tokens; the file's KV cache holds 2,048), warm-up run discarded, otherwise idle machine. These figures cover the text path; the vision encoder runs once per image and is not included.
| Device | Backend | Prefill (256) | Decode | TTFT |
|---|---|---|---|---|
| Apple M4 Max (macOS) | CPU | 57 tok/s | 21.3 tok/s | 4.89 s |
| Apple M4 Max (macOS) | GPU (Metal) | 736 tok/s | 86.5 tok/s | 0.37 s |
When this table was written, each backend in it was checked on that earlier file by generating a caption, not only by reading the benchmark tool's output. With litert-lm 0.19.0 to 0.19.2, this file and the previous one answer a text question on the Mac GPU with the same reply, byte for byte; with litert-lm 0.19.2 and --backend gpu --vision-backend cpu, both answer the picture under How to use with "Two cats are sleeping on a pink couch, surrounded by remote controls." (with --vision-backend gpu, neither does; see How to use). No Mac speed was measured with these versions.
Accuracy note
This paragraph was written for an earlier file and was not re-checked with this one. The vision tower converts faithfully to the reference β float CPU output end-to-end corr β 1.0 (max abs diff ~1e-4), with no TensorFlow Flex or custom ops in the graph; int8 vision weights preserve grounding. The Qwen3-4B decoder uses the same blockwise-32 + OCTAV int4 recipe as the Ministral-3-3B-Reasoning build (90.7% GSM8K there). On a reference eager run the model describes photos accurately and in detail (e.g. a black-and-white Ansel-Adams-style landscape β "dramatic mountain landscape β¦ snow-capped peaks β¦ a winding river through a forested valley").
Galaxy S26 β GPU and CPU
Each run prefills 1,024 tokens and generates 256 tokens, three times (three iterations): the runtime's benchmark mode puts the prompt file's one sentence ("Explain what on-device AI means in simple terms.") in the chat template as a user message and pads the tokens to 1,024 with token id 0. Iteration 1 is the first pass after the engine starts. The GPU row is the median of iterations 2β3 over two runs, so it leaves iteration 1 out; on the GPU, iteration 1 prefilled faster than iterations 2 and 3 in every run, and in this file's runs it also decoded faster (this file's iteration 1: prefill 231β234 tok/s, decode 18.9β19.1 tok/s). On the CPU this file's median prefill and decode speeds drop from each iteration to the next, so each iteration has its own row: the median of that iteration over two runs.
| Backend | Prefill, 1,024 tokens | Decode | Time to first token | Peak memory |
|---|---|---|---|---|
GPU (LiteRT GPU, every node of the prefill and decode graphs), iterations 2β3 |
195 tok/s | 18.7 tok/s | 5.32 s | 1.38 GB + 4.45 GB GPU driver |
| CPU (XNNPACK for most nodes), iteration 1 | 58.6 tok/s | 10.0 tok/s | 17.60 s | 4.30 GB |
| CPU (XNNPACK for most nodes), iteration 2 | 40.8 tok/s | 9.8 tok/s | 25.21 s | 4.30 GB |
| CPU (XNNPACK for most nodes), iteration 3 | 39.1 tok/s | 8.8 tok/s | 26.33 s | 4.30 GB |
Samsung Galaxy S26 (model SM-S942Q, chipset SM8850, Android 16), litert_lm_advanced_main built from the LiteRT-LM v0.19.0 source (commit 771b06e1; the v0.19.0 tag is on the next commit, which changes only Package.swift and README.md), --benchmark with 1,024 prefill tokens and 256 decode tokens, context 2,048, 2026-11-15. Each run is a new process. The rows cover the text path. On the CPU the runtime used its default of 4 threads. The GPU runs started at Android's thermal status 0 (none) and each ended at thermal status 2 (moderate), at GPU thermal level 5 or 6 (the GPU driver's own thermal level; 0 = no limit); the phone also lowered the clock caps of its two CPU clock domains (policy0 / policy6) during each GPU run, to 1.79β2.00 / 1.75β1.98 GHz by its end; in every GPU run the prefill slowed from one iteration to the next. The CPU runs started at thermal status 1 (light) and were at thermal status 2 (moderate) by 11β22 s in (the status is read about every 11 s); three of the four counted runs ended at thermal status 2 and one at 3 (severe).
The four counted CPU runs went previous, this, this, previous (runs 1β4), after one warm-up run of this file that is not counted. In each of them the phone lowered both CPU clock caps from 2β7 s in, to 1.56 / 1.50 GHz by 27β31 s in, while iteration 1 ran (it ended 47β50 s in). In runs 1β3 the caps changed again from 98β101 s in, when iteration 3 began, moving between 1.23 / 1.27 and 1.67 / 1.63 GHz, and were at 1.23 / 1.27 GHz from 130β137 s in; in run 4 they stayed at 1.56 / 1.50 GHz until 144 s in and were at 1.23 / 1.27 GHz from 148 s in (the runs took 152β156 s). Run 4, of the previous file, started 82 minutes after run 3 ended.
Peak memory is per run, so the three CPU rows share one value. It is the process's VmHWM: on the CPU 4.28β4.30 GB in this file's two counted runs (4.35 GB in the warm-up run) and 3.95β4.00 GB in the previous file's two. VmHWM does not count memory the GPU driver holds, so the GPU row adds the rise of the phone's GPU allocation counter (kgsl_page_alloc) during each of this file's GPU runs (4.45 GB; 3.57 GB in each of the previous file's). In the CPU runs that counter rose by less than 1 MB (0.44 MB in two of the five runs, not at all in the other three). Engine start (the runtime's init time, the median of a file's two runs) took 13.02 s with this file and 12.54 s with the previous file on the GPU, and 5.83 s and 4.34 s on the CPU.
With the vision encoder on the GPU (--vision_backend=gpu), litert_lm_advanced_main stops with exit status 13 when the GPU delegate is applied to the encoder: with this file on this phone, and with this file and the previous one on a Pixel 11 Pro. Its log names two op types of the encoder that the GPU delegate does not take, BROADCAST_TO and GATHER_ND; 13 of the encoder's 1,320 nodes stay off the GPU (on both phones). With the vision encoder on the CPU (--vision_backend=cpu) and the decoder on the GPU, this phone answered "Describe this picture in one sentence." about the photo under How to use with "Two cats are lounging on a pink couch, with one cat seemingly asleep and the other grooming itself." (one run).
On the GPU this file decodes 19β22 % faster than the previous file. Four runs went previous, this, this, previous (each run's mean of iterations 2β3): prefill 187, 195, 195 and 194 tok/s, decode 15.3, 18.7, 18.6 and 15.6 tok/s; from the previous file to this one, decode Γ1.225 and prefill Γ1.045 in the first two runs, decode Γ1.193 and prefill Γ1.007 in the last two, while the previous file's own two runs differ by 3.6 % in prefill. By the table's statistic (the median of iterations 2β3 over a file's two runs) the previous file gives 193 tok/s prefill and 15.4 tok/s decode, this file 195 and 18.7. On the CPU the two files' medians were within 2 % of each other in iterations 1 and 2 (this file's 1.9 % and 0.3 % above the previous file's in prefill, 0.2 % above and equal in decode). In iteration 3 this file's medians were 4.9 % below in prefill and 2.6 % below in decode, but the clock caps differed between the runs while iteration 3 prefilled: in both runs of this file the cap of policy0 was at 1.23β1.32 GHz in 4 of the 11 readings; in run 1, of the previous file, one reading was at 1.32 / 1.38 GHz and five at 1.67 / 1.63 GHz; in run 4, of the previous file, the caps stayed at 1.56 / 1.50 GHz. The warm-up run of this file, whose caps also stayed at 1.56 / 1.50 GHz then, prefilled 40.82 tok/s in iteration 3 (run 4: 40.70). Two counted runs of the same file differed by up to 12.7 % in a speed or a time to first token (iteration 1 prefill of the previous file, 60.90 in run 1 and 54.02 in run 4). 8 short questions on this phone's GPU (this file only): 8 of 8. The runs behind each number, and the S26 section this card carried for an earlier file: MEASUREMENTS.md.
On the Galaxy S26 the GPU decodes 1.9Γ as fast as the CPU's iterations 1 and 2 and 2.1Γ as fast as its iteration 3, and prefills 3.3Γ, 4.8Γ and 5.0Γ as fast (iterations 1, 2 and 3), so this repo's litertlm_manifest.json recommends gpu for the Android device class it calls flagship. That recommendation rests on the Galaxy S26 alone, and its speeds cover the text path: with a picture, the vision encoder ran on this phone only on the CPU (with --vision_backend=gpu the program stops; see above).
GPU wiring, including the Gallery import toggle: GPU guide.
Pixel 11 Pro β GPU
On a Pixel 11 Pro (the same build and workload, 2026-11-14) every node of the prefill and decode graphs runs on the GPU with both files, and both files answered 8 of the 8 short questions. There this file prefilled more slowly than the previous file and decoded faster, in every iteration of the four runs (previous, this, this, previous): prefill 175β189 tok/s against 205β215 tok/s, decode 9.2β10.1 tok/s against 7.8β8.6 tok/s. The previous file's first run started at thermal status 0 and the other three runs at thermal status 1 (light), so only one run of the previous file started at the status of this file's two runs. The Pixel 11 Pro CPU was not measured. The runs: MEASUREMENTS.md.
β οΈ Known limitation β one image per conversation on the GPU (Metal) backend
Single-image VQA (visual question answering) β the primary use case β worked in every setup tried with the decoder on the GPU and the vision encoder on the CPU (see How to use and the Galaxy S26 section). But on the GPU (Metal) backend of Apple devices, a
second image in the same conversation truncates the answer β ask about one image per chat
(start a new conversation for a different image). On the CPU backend, a second image in the same conversation was answered, and the same truncation on
the GPU was seen with litert-community/FastVLM-0.5B (Apple's FastVLM). For multi-image, run on the CPU backend. The truncation, the CPU result
and the FastVLM-0.5B run were all seen with an earlier file; none was tried with this file or on Android.
Run on iPhone / macOS
Use swift-litert-lm, a community Swift package over the LiteRT-LM runtime,
and its LiteRTDemo sample. Load model.litertlm with the image (vision) tower enabled
(modalities [.vision]), attach a photo, and ask a question.
Note for app integrators: this is a vision-only file (no audio tower). Bring up the engine with the vision modality only (
Modality.textImage/[.vision]) β requesting the audio tower (.all) on a file with no audio section fails at session creation.
These steps were written for an earlier file and were not run with this one. On a Mac, this file does not answer a picture with --backend gpu --vision-backend gpu (see How to use).
Run on Android β Google AI Edge Gallery
Install a recent Google AI Edge Gallery (1.0.16+ can
import .litertlm directly from Hugging Face), download model.litertlm, import it (tap
+), attach an image and ask. The file already carries the tokenizer and prompt template.
These steps were written for an earlier file and were not repeated with this one, and which backend Gallery gives the vision encoder was not checked. On a Galaxy S26 and a Pixel 11 Pro (LiteRT-LM v0.19.0), litert_lm_advanced_main with the vision encoder on the GPU stops with exit status 13; with the vision encoder on the CPU, the Galaxy S26 answered the picture in one run (see the Galaxy S26 section).
Conversion notes
- LiteRT-LM
fast_vlmfile: VISION_ENCODER ([1,448,448,3]β[1,256,4096]) + VISION_ADAPTER ([1,256,4096]β[1,256,2560], matched to the Qwen3-4B hidden size) + single-token EMBEDDER + PREFILL_DECODE (embeddings-input). - The vision encoder bakes InternVL's ImageNet normalization and the NCHW transpose into the graph
(the runtime feeds a
[0,1]NHWC image). - The InternViT attention is rewritten 4D-clean (qkv split before the head reshape, avoiding a 5D intermediate) for the GPU delegate; the delegate still does not take two of the encoder's op types (see the Galaxy S26 section).
- Decoder extracted from the InternVLChat wrapper as a standalone
Qwen3ForCausalLM(dynamic rope_scaling stripped; exported with cache β€ base max so base RoPE is exact).
Each dated entry below was written on its date: in it, "this file" is the file published that day, "the previous file" is the one it replaced, and "this card" is the card as it was then.
2026-08-28 β start_token fix (weights unchanged)
The file's LlmMetadata start_token held the literal string "None". This tokenizer has no BOS, and LiteRT-LM resolved that string to a real vocabulary token β so every prompt began with the word None, which the model was never trained on. The start token has been removed.
Metadata-only change: every section of the file except the LlmMetadata block is byte-identical to the previous file (verified by sha256 per section), so the weights, the graph and the tokenizer are unchanged and the speed and memory numbers on this card still describe exactly this file β only the file's own sha256 differs. What changed is the input: the token stream the model reads for a given conversation can differ from the previous file's, and it now matches this model's own reference chat stream. Greedy decoding can turn on a single token, so an individual answer can differ from the previous file in either direction. Unless a row says otherwise, the accuracy figures on this card were measured on the previous file and have not been re-measured on this one. If you downloaded before 2026-08-28 (03:15 UTC), download again; with the litert-lm CLI, first delete the cached file as described under the command in How to use.
2026-08-30 β tokenizer section replaced (weights unchanged)
The tokenizer in model.litertlm was a SentencePiece conversion of the model's BPE tokenizer, and the conversion lost the byte-level semantics: a standalone accented letter or symbol (Γ©, Γ±, ΓΌ, Β°, Β·, β¦) was encoded to the id of a single-byte token instead of the token the upstream tokenizer uses, and 36 of the 223 standalone characters U+00A1βU+017F in the checks (Β‘, Δ to Δ‘, and Ε²) became the token the conversion had reused as UNK β the end-of-text token for this vocabulary. model.litertlm now embeds the upstream tokenizer.json (the same HF tokenizer path most files in this collection use).
Tokenizer-only change: every section of the file except the tokenizer is byte-identical to the previous file (verified by sha256 per section), so the weights, the graph and the chat template are unchanged and the speed and memory numbers on this card still describe this file per token β only the file's own sha256 differs. Verified on the LiteRT-LM runtime: one user message ("What is the capital of France?") as the chat template renders it, 7 test strings, the 223 standalone characters U+00A1βU+017F and every special token now tokenize identically to the upstream tokenizer, and the four ASCII-only test questions gave byte-identical answers to the previous file within the check's limit of 48 output tokens (same ids in, same tokens out). In the checks, text with accented letters, symbols or non-Latin scripts and a short Python snippet reach the model differently from before (digits, plain English text and the test emoji do not), so individual answers to such prompts can change. When this entry was written, the accuracy figures on this card and its on-device rows had been measured on earlier files unless a row said otherwise, and the 2026-08-25 Galaxy S26 GPU check (now in MEASUREMENTS.md) had not been re-run on the 2026-08-30 file (the runtime's tokenizer code is the same on macOS and on device; the weights and graph are byte-identical). If you downloaded before 2026-08-30 (05:29 UTC), download again; with the litert-lm CLI, first delete the cached file as described under the command in How to use.
2026-08-31 β chat template fix: history turns with role 'assistant' (metadata-only, weights unchanged)
The chat template in model.litertlm matched history turns only on role 'model', so a conversation created through the Conversation API with the standard role 'assistant' (for example create_conversation(messages=[...]) restoring a chat) silently dropped every assistant turn from the rendered prompt β the model saw consecutive user turns with its own replies gone. The template's role conditions now also accept 'assistant'. The engine's own send_message flow was never affected.
Template-only change: every section of the file except the metadata is byte-identical to the previous file (verified by per-section sha256), and single-turn renders, token ids, prefill counts and greedy answers are unchanged (verified on the LiteRT-LM runtime), so the numbers on this card still describe this file β only the file's own sha256 differs. Re-download only matters if you inject conversation history with role 'assistant'. Details: google-ai-edge/LiteRT-LM#3417 (https://github.com/google-ai-edge/LiteRT-LM/issues/3417).
2026-11-15 β GPU graph and a 1,024-token prefill (weights unchanged)
The prefill/decode graph now has the GPU form litert-torch writes with --apply_gpu_composites, plus a 1,024-token prefill signature, prefill_1024: a copy of prefill_512 at a length of 1,024 tokens that shares its weight buffers. Every weight, and every section outside that graph, is byte-identical to the previous file. The whole file went from sha256 6a791513β¦ (2,992,226,304 B) to c003add6β¦ (2,995,159,040 B).
On a Mac the two files gave the same replies byte for byte in these runs: 4 prompts and a picture on the CPU (litert-lm 0.19.2, 1 thread, greedy decoding with top-k 1), and one prompt and the picture on the CPU and the prompt on the GPU with litert-lm 0.19.0 to 0.19.2 (with only the flags of the command under How to use, their replies to the picture differed; see there). 8 short questions (each ends with "Answer briefly."): the expected word or number was in all 8 replies with both files on the Mac CPU and GPU and on a Pixel 11 Pro GPU, and with this file on a Galaxy S26 GPU (the previous file was not asked there); on the Mac CPU, both files' reply to the French question then kept repeating the same sentences (7,602 characters with this file, 9,752 with the previous file).
Galaxy S26 GPU (LiteRT-LM v0.19.0, four runs in the order previous, this, this, previous; each run's mean of iterations 2β3): prefill 187, 195, 195 and 194 tokens/s, decode 15.3, 18.7, 18.6 and 15.6 tokens/s, so from the previous file to this one prefill Γ1.045 and decode Γ1.225 in the first pair, prefill Γ1.007 and decode Γ1.193 in the second; the previous file's two runs differ by 3.6 % in prefill. On a Pixel 11 Pro GPU this file prefilled more slowly and decoded faster than the previous file (see that section). Procedure: REPRODUCE.md.
Measured on this file: the last three sentences of the paragraph under the title, the file size, the example answer under How to use and the two paragraphs after it, the first sentence of the Performance section and the last two sentences of the paragraph under its table, the Galaxy S26 and Pixel 11 Pro sections, the first sentence of the Known limitation section, the last paragraph of the iPhone / macOS section and of the Gallery section, the end of the third conversion note, and this entry. The Known runtime issues below were not re-checked with this file (each names its runtime versions, and the last two say they were measured on other files). The rest of this card was written for earlier files; the weights, tokenizer and chat template it describes are the same in this file.
Known runtime issues
External weights (since 2026-11-09). In model.litertlm, the weights sit in TFLiteWeights sections at the end of the file (LiteRT's external weights) instead of inside the model graph. On a Pixel 8a, the GPU engine of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) on a Qwen3-0.6B file with external weights (LiteRT-LM#3986). The last file with the weights inside the graph stays at revision d2c1014.
From the second turn of a conversation on, LiteRT-LM puts the previous answer's stop token into the KV cache with a zero embedding, because this file holds the embedding table in its own section and the decoder takes embeddings, so later answers in a conversation can differ from the answer the model gives to the same messages in one prompt (read in the source of LiteRT-LM 0.16.0 to 0.18.1; measured with 0.18.1 on WeVisOne-VL-2B and Qwen2.5-Coder-1.5B-Instruct, not on this file). One question per conversation avoids it, as does a new conversation that starts with the earlier messages and the new question.
On LiteRT-LM 0.18.1 and 0.19.1, once a message fails because it does not fit in the context window, every later message in that conversation fails as well (the next one with Task failed with state: 7). Start a new conversation after such an error. This was measured with other models' files, not with this one.
- Downloads last month
- 717
Model tree for litert-community/InternVL3_5-4B
Base model
OpenGVLab/InternVL3_5-4B-Pretrained