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.86 GB
Checkpoint step 750 of 771, the one the GGUFs ship
Weights int4 blockwise (32) for embeddings and FFN/attention, int8 channelwise for the per-layer embedding projections
Embedder externalized
KV cache 8192 tokens
Exported with litert-torch 0.9.3, ai-edge-quantizer (recipe gemma4_mixed48_b32, flattened), packed with litert-lm-builder 0.18.1
Runtime LiteRT-LM 0.18.1 or newer

Text only, with no vision or audio encoder.

The quantization recipe is the v8 one: 32-wide int4 blocks match the 4-bit grid the QAT base was trained on, and per-channel int4 lost tool calling outright on v8. This build was smoke tested on LiteRT-LM 0.18.1 (CPU, desktop and the Android app), not put through the held-out eval the GGUFs got.

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