How to use from
Docker Model Runner
docker model run hf.co/efficiencyx/Jun-LoRA-E2B-LiteRT
Quick Links

Jun-E2B-LiteRT (v9)

.litertlm build of the v9 Jun LoRA on Gemma 4 E2B (QAT), for LiteRT-LM, Google AI Edge's on-device runtime. It is the model the Jun OS Android app runs on the phone, and the same checkpoint as the v9 GGUF builds. Jun is the character from the visual novel My Dystopian Robot Girlfriend.

The adapter is merged into the base weights, so this is a standalone model.

See the GGUF card for what changed in v9: a fresh LoRA, three effort levels that really differ, replies in your language, and better tool judgement.

Model variants

Repository Format Description
efficiencyx/Jun-LoRA-E2B-LiteRT .litertlm This repo: v9 for LiteRT-LM
efficiencyx/Jun-LoRA-E2B-GGUF GGUF Same checkpoint, for llama.cpp and Ollama
efficiencyx/Jun-LoRA-E4B-GGUF GGUF The E4B sibling (v9)
efficiencyx/Jun-LoRA-12B-GGUF GGUF The 12B sibling (v9)

The build

File model.litertlm
Size 2.39 GB
Checkpoint step 750 of 771, the one the GGUFs ship
Weights int4 channelwise for FFN and attention, int8 channelwise for the per-layer embedding projections (recipe gemma4_mixed48), int4 channelwise for both embedding tables
Activations fp16, KV cache fp16
Embedder externalized
KV cache 8192 tokens
Prefill 128 and 1024 token signatures
Exported with litert-torch 0.10.0 (experimental_use_fp16, apply_gpu_composites), ai-edge-quantizer 0.10.1, packed with litert-lm-builder 0.20.0 (weights in their own sections)
Runtime LiteRT-LM 0.19.0 or newer

Text only, with no vision or audio encoder.

Earlier builds used 32-wide int4 blocks. From LiteRT-LM 0.20 on, the GPU backend turns those into nothing but <pad> tokens, so this build is channelwise, the same layout Google ships its own Gemma 4 files in. On a moto g86 (GPU, LiteRT-LM 0.20.0) it reads the system prompt about twice as fast as the blockwise build and writes around 3 tokens per second. It was smoke tested there, not put through the held-out eval the GGUFs got. The blockwise file is still at revision 4f44fe1, for LiteRT-LM 0.18 and 0.19.

Usage

litert-lm run model.litertlm --prompt "Ciao Jun"

Or from the LiteRT-LM Kotlin, C++ or Python APIs, pointing at the same file.

Supply the system prompt. Without it the model answers as stock Gemma. The prompt Jun OS sends lives in its repository as webapp/system_prompt.txt. Live context (gauges, clock, recalled memories) goes at the end of the user's message, after a blank line.

Reasoning depth. End the user turn with <think:low>, <think:med> or <think:high> after a blank line. v9 was trained to think on every turn, so keep thinking on and give the reply room after the trace:

import litert_lm as lm
conv = engine.create_conversation(
    system_message=system_prompt,
    tools=tools,
    automatic_tool_calling=False,
    thinking_config=lm.ThinkingConfig(enable_thinking=True),
)
reply = conv.send_message("where did you put my keys\n\n<think:low>", max_output_tokens=1024)

The trace comes back in reply.channels["thought"], the reply in its text.

Tools. Declare them as OpenAPI functions, the same JSON a chat-completions API takes. Offer only the ones your app can carry out.

The bundled chat template is the one v9 was merged with, with every .get() call rewritten as a subscript: LiteRT-LM's template engine has no map.get() and refuses the template otherwise.

Notes

  • The merge drops 40 of 245 LoRA pairs, by necessity. Gemma 4 E2B shares KV projections across layers 15 to 34, so k_proj/v_proj only exist for layers 0 to 14. Those deltas were never reachable at inference.
  • At 2B effective parameters she is less reliable than the bigger siblings: fewer tool calls, and she sometimes makes up a name or fact instead of admitting a blank.
  • Specialized for one character, not a general assistant. What she says is fiction, not facts or advice.

License

Apache 2.0, inherited from the base model. The character and source material belong to their respective owners; this fine-tune is a non-commercial fan project.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for efficiencyx/Jun-LoRA-E2B-LiteRT

Adapter
(13)
this model