Instructions to use efficiencyx/Jun-LoRA-E2B-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use efficiencyx/Jun-LoRA-E2B-LiteRT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="efficiencyx/Jun-LoRA-E2B-LiteRT")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("efficiencyx/Jun-LoRA-E2B-LiteRT", device_map="auto") - LiteRT
How to use efficiencyx/Jun-LoRA-E2B-LiteRT 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
- LiteRT-LM
How to use efficiencyx/Jun-LoRA-E2B-LiteRT 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=efficiencyx/Jun-LoRA-E2B-LiteRT \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use efficiencyx/Jun-LoRA-E2B-LiteRT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "efficiencyx/Jun-LoRA-E2B-LiteRT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efficiencyx/Jun-LoRA-E2B-LiteRT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/efficiencyx/Jun-LoRA-E2B-LiteRT
- SGLang
How to use efficiencyx/Jun-LoRA-E2B-LiteRT with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "efficiencyx/Jun-LoRA-E2B-LiteRT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efficiencyx/Jun-LoRA-E2B-LiteRT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "efficiencyx/Jun-LoRA-E2B-LiteRT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efficiencyx/Jun-LoRA-E2B-LiteRT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use efficiencyx/Jun-LoRA-E2B-LiteRT with Docker Model Runner:
docker model run hf.co/efficiencyx/Jun-LoRA-E2B-LiteRT
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_projonly 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.
Model tree for efficiencyx/Jun-LoRA-E2B-LiteRT
Base model
google/gemma-4-E2B