Instructions to use litert-community/InternVL3-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/InternVL3-2B 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-2B \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/InternVL3-2B 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
Card: what to do when a --from-huggingface-repo download is cut short
Browse files
README.md
CHANGED
|
@@ -61,6 +61,8 @@ On the COCO sample image `huggingface/documentation-images/coco_sample.png` (two
|
|
| 61 |
Two cats are sleeping on a pink blanket.
|
| 62 |
```
|
| 63 |
|
|
|
|
|
|
|
| 64 |
Drop `--prompt` for an interactive chat, and pass `--attachment` more than once for several images. `litert-lm serve` exposes the same bundle as a local OpenAI-compatible API. The same file runs on macOS, Linux and Windows.
|
| 65 |
|
| 66 |
## Performance
|
|
@@ -153,6 +155,8 @@ litert-lm run internvl3-2b # interactive chat in the terminal
|
|
| 153 |
litert-lm serve # local OpenAI-compatible API server
|
| 154 |
```
|
| 155 |
|
|
|
|
|
|
|
| 156 |
## Conversion notes
|
| 157 |
|
| 158 |
- LiteRT-LM `fast_vlm` bundle: VISION_ENCODER (`[1,448,448,3]`→`[1,256,4096]`) + VISION_ADAPTER
|
|
|
|
| 61 |
Two cats are sleeping on a pink blanket.
|
| 62 |
```
|
| 63 |
|
| 64 |
+
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-2B/` and uses it again on later runs without checking its size. Delete that file and run the command again.
|
| 65 |
+
|
| 66 |
Drop `--prompt` for an interactive chat, and pass `--attachment` more than once for several images. `litert-lm serve` exposes the same bundle as a local OpenAI-compatible API. The same file runs on macOS, Linux and Windows.
|
| 67 |
|
| 68 |
## Performance
|
|
|
|
| 155 |
litert-lm serve # local OpenAI-compatible API server
|
| 156 |
```
|
| 157 |
|
| 158 |
+
If the `run` command above stops 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 file that `import` downloaded 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-2B/` and imports it without checking its size. Delete that file and run the `import` command again: it downloads a new copy and replaces the imported one.
|
| 159 |
+
|
| 160 |
## Conversion notes
|
| 161 |
|
| 162 |
- LiteRT-LM `fast_vlm` bundle: VISION_ENCODER (`[1,448,448,3]`→`[1,256,4096]`) + VISION_ADAPTER
|