mlboydaisuke commited on
Commit
78950fa
·
verified ·
1 Parent(s): ebcf818

Card: what to do when a --from-huggingface-repo download is cut short

Browse files
Files changed (1) hide show
  1. README.md +4 -0
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