mlboydaisuke commited on
Commit
46003d4
·
verified ·
1 Parent(s): 2d2acb2

Add a third Mac run of the card's commands

Browse files

The Usage section adds a third Mac run of the download and desktop commands as written, with Python 3.12.13, which printed a full HTML page, wrote a weight cache of about 4.2 GB and peaked at about 12.4 GB of resident memory, and litertlm_manifest.json adds the desktop file's peak_ram_mb.

Files changed (2) hide show
  1. README.md +1 -1
  2. litertlm_manifest.json +3 -2
README.md CHANGED
@@ -122,7 +122,7 @@ pip install litert-lm==0.20.0
122
  litert-lm run ./CCORE-Web-Coder-4B_int8_kv32768.litertlm --backend cpu --prompt "Write a minimal HTML page with one red button."
123
  ```
124
 
125
- With macOS's own `python3`, which is 3.9.6 on macOS 27.0, pip stops with `ERROR: Could not find a version that satisfies the requirement litert-lm==0.20.0`. On a Mac with Apple silicon and macOS 27.0, each of two runs of the command printed a full HTML page and ended by itself. The first wrote a weight cache of about 4.2 GB next to the model file and peaked at about 12.4 GB of resident memory. The second read that cache and peaked at about 7.5 GB.
126
 
127
  On Android, use `CCORE-Web-Coder-4B_int8_kv16384.litertlm` with LiteRT-LM 0.20.0 on the GPU: on both phones its prefill was faster than the CPU's in every run, and on the Galaxy S26 its decode was too. With the default cache folder, the first engine writes caches next to the model file: about 4.2 GB for the CPU, and for the GPU about 4.2 GB on the Pixel 11 Pro and 31 MB on the Galaxy S26.
128
 
 
122
  litert-lm run ./CCORE-Web-Coder-4B_int8_kv32768.litertlm --backend cpu --prompt "Write a minimal HTML page with one red button."
123
  ```
124
 
125
+ With macOS's own `python3`, which is 3.9.6 on macOS 27.0, pip stops with `ERROR: Could not find a version that satisfies the requirement litert-lm==0.20.0`. On a Mac with Apple silicon and macOS 27.0, three runs of the command each printed a full HTML page and ended by itself; the third ran the commands above as written, with Python 3.12.13. The first and third each wrote a weight cache of about 4.2 GB next to the model file and peaked at about 12.4 GB of resident memory. The second read the first's cache and peaked at about 7.5 GB.
126
 
127
  On Android, use `CCORE-Web-Coder-4B_int8_kv16384.litertlm` with LiteRT-LM 0.20.0 on the GPU: on both phones its prefill was faster than the CPU's in every run, and on the Galaxy S26 its decode was too. With the default cache folder, the first engine writes caches next to the model file: about 4.2 GB for the CPU, and for the GPU about 4.2 GB on the Pixel 11 Pro and 31 MB on the Galaxy S26.
128
 
litertlm_manifest.json CHANGED
@@ -264,16 +264,17 @@
264
  {
265
  "platform": "macos",
266
  "backend": "cpu",
267
- "reason": "On a Mac (Apple silicon, macOS 27.0) with the litert-lm 0.20.0 package from PyPI, litert-lm run --backend cpu printed a full HTML page and ended by itself in each of two runs; with greedy decoding, thinking off and no system prompt, the file's replies to eight short questions matched the publisher's model (float32, Transformers) token for token in seven and in the first 15 tokens of the eighth"
268
  }
269
  ],
270
  "min_runtime_version": "0.20.0",
271
  "requirements": {
 
272
  "platform_notes": [
273
  "Generation was run on LiteRT-LM 0.20.0 only: the PyPI litert-lm 0.20.0 package on a Mac (Apple silicon, macOS 27.0), CPU",
274
  "The litert-lm 0.20.0 package needs Python 3.10 or newer; with macOS's own python3 (3.9.6 on macOS 27.0), pip stops with 'ERROR: Could not find a version that satisfies the requirement litert-lm==0.20.0'",
275
  "KV cache 32,768 tokens for the prompt and the whole reply; the publisher's card says a full response, reasoning included, typically uses around 20,000 output tokens",
276
- "Mac CPU and cache: with the runtime's default cache setting, the first litert-lm run --backend cpu wrote a 4,221,362,168-byte XNNPACK weight cache next to the file and peaked at 12,415,156,224 bytes resident; a second run read that cache and peaked at 7,536,066,560 bytes",
277
  "Thinking off only: with enable_thinking left out or false, the template gives the eight test questions the same prompt tokens as the publisher's template with thinking off, ending with an empty thought block (<think>\\n\\n</think>\\n\\n); every reply checked here ran with enable_thinking false or left out",
278
  "Tokenizer: the publisher's tokenizer.json with the 11 added tokens of its tokenizer_config.json that it lacks (ids 248066-248076) appended",
279
  "Stop tokens <|endoftext|> (248044) and <|im_end|> (248046)",
 
264
  {
265
  "platform": "macos",
266
  "backend": "cpu",
267
+ "reason": "On a Mac (Apple silicon, macOS 27.0) with the litert-lm 0.20.0 package from PyPI, litert-lm run --backend cpu printed a full HTML page and ended by itself in each of three runs; with greedy decoding, thinking off and no system prompt, the file's replies to eight short questions matched the publisher's model (float32, Transformers) token for token in seven and in the first 15 tokens of the eighth"
268
  }
269
  ],
270
  "min_runtime_version": "0.20.0",
271
  "requirements": {
272
+ "peak_ram_mb": 11840,
273
  "platform_notes": [
274
  "Generation was run on LiteRT-LM 0.20.0 only: the PyPI litert-lm 0.20.0 package on a Mac (Apple silicon, macOS 27.0), CPU",
275
  "The litert-lm 0.20.0 package needs Python 3.10 or newer; with macOS's own python3 (3.9.6 on macOS 27.0), pip stops with 'ERROR: Could not find a version that satisfies the requirement litert-lm==0.20.0'",
276
  "KV cache 32,768 tokens for the prompt and the whole reply; the publisher's card says a full response, reasoning included, typically uses around 20,000 output tokens",
277
+ "Mac CPU and cache: with the runtime's default cache setting, the first litert-lm run --backend cpu wrote a 4,221,362,168-byte XNNPACK weight cache next to the file and peaked at 12,415,156,224 bytes resident; a second run read that cache and peaked at 7,536,066,560 bytes; a third run, of the card's download and desktop commands as written with Python 3.12.13, again wrote a 4,221,362,168-byte weight cache and peaked at 12,410,421,248 bytes. peak_ram_mb is the larger first-run peak, 12,415,156,224 bytes, in MiB",
278
  "Thinking off only: with enable_thinking left out or false, the template gives the eight test questions the same prompt tokens as the publisher's template with thinking off, ending with an empty thought block (<think>\\n\\n</think>\\n\\n); every reply checked here ran with enable_thinking false or left out",
279
  "Tokenizer: the publisher's tokenizer.json with the 11 added tokens of its tokenizer_config.json that it lacks (ids 248066-248076) appended",
280
  "Stop tokens <|endoftext|> (248044) and <|im_end|> (248046)",