Downloads · 30 days
0
cpxavier2/codegemma-7b-it-int4-litertlm
codegemma-7b-it-int4-litertlm is a text generation model from cpxavier2. Use it when you need the model to write or continue text. It is set up for litert. The card lists the license as gemma.
This repository contains Google's CodeGemma 7B Instruction-Tuned (google/codegemma-7b-it) quantized to INT4 and packaged into the .litertlm format for on-device execution on Android using Google's LiteRT runtime.
Downloads · 30 days
0
Access
Public
Updated Aug 16, 2026
Repo size
4.7 GB
Likes
0
Public
Click a slice to open those files.
.litertlm4.7 GB · 100%
From the Hugging Face model README
This repository contains Google's CodeGemma 7B Instruction-Tuned (google/codegemma-7b-it) quantized to INT4 and packaged into the .litertlm format for on-device execution on Android using Google's LiteRT runtime.
.litertlm (LiteRT LM Model Bundle)dynamic_wi4_afp32)Download the .litertlm bundle into your Android app's assets or internal storage and load it via LiteRT-LM:
val modelPath = File(context.filesDir, "codegemma-7b-it-int4.litertlm").absolutePath
val options = ModelOptions.builder()
.setModelPath(modelPath)
.build()
val engine = LiteRtLmEngine.create(options)
val response = engine.generate("Write a Kotlin function to check prime numbers.")
println(response)