Instructions to use litert-community/CCORE-Web-Coder-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/CCORE-Web-Coder-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/CCORE-Web-Coder-4B \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/CCORE-Web-Coder-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
Commit History
Yesterday
-
Update the 10-minute note for LiteRT-LM 0.20.0 streaming
Verified signatureThe card's 10-minute note and the same known issue in litertlm_manifest.json now say that streaming with send_message_async ran past 10 minutes with LiteRT-LM 0.20.0 too, and link the commit on LiteRT-LM's main branch, not in 0.20.0, that makes the blocking send's wait fail only when no progress is made for 10 minutes.db11c07 -
Add a third Mac run of the card's commands
Verified signatureThe 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.46003d4 -
Add LiteRT-LM 0.20.0 to the 10-minute limit of a blocking send
Verified signatureThe card's 10-minute note and the same known issue in litertlm_manifest.json now say that the blocking send of LiteRT-LM 0.20.0 also fails a reply that is still generating after 10 minutes with DEADLINE_EXCEEDED.2d2acb2 -
Add CCORE-Web-Coder-4B as two int8 LiteRT-LM files
Verified signatureThe desktop file (KV cache 32,768 tokens) ran on a Mac CPU and the phone file (KV cache 16,384 tokens) on the CPU and GPU of a Pixel 11 Pro and a Snapdragon Galaxy S26, all with LiteRT-LM 0.20.0.68a57e2