Instructions to use naksyu/lime-gemma4-e4b-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use naksyu/lime-gemma4-e4b-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="naksyu/lime-gemma4-e4b-sft") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("naksyu/lime-gemma4-e4b-sft") model = AutoModelForMultimodalLM.from_pretrained("naksyu/lime-gemma4-e4b-sft", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use naksyu/lime-gemma4-e4b-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "naksyu/lime-gemma4-e4b-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "naksyu/lime-gemma4-e4b-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/naksyu/lime-gemma4-e4b-sft
- SGLang
How to use naksyu/lime-gemma4-e4b-sft 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 "naksyu/lime-gemma4-e4b-sft" \ --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": "naksyu/lime-gemma4-e4b-sft", "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 "naksyu/lime-gemma4-e4b-sft" \ --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": "naksyu/lime-gemma4-e4b-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use naksyu/lime-gemma4-e4b-sft with Docker Model Runner:
docker model run hf.co/naksyu/lime-gemma4-e4b-sft
Lime Gemma 4 E4B Persona500 Merged HF
Lime is a Korean persona-tuned derivative checkpoint based on the Gemma 4 E4B model family.
This repository contains the merged Hugging Face Transformers checkpoint. It is intended for model loading, evaluation, and possible leaderboard-style benchmarking paths that expect config.json, tokenizer files, and model.safetensors.
This is not an official Google or Google DeepMind release.
Model Details
- Base model family: Gemma 4 E4B
- Declared upstream base model:
google/gemma-4-E4B - Local base checkpoint used for merging:
gemma-4-E4B-it - Fine-tuning method: LoRA SFT, then merged into the base checkpoint
- Adapter source:
gemma4_e4b_lime_lora_persona500 - LoRA rank: 16
- LoRA alpha: 32
- Merge scale: 2.0
- Main weight file:
model.safetensors - Format: Hugging Face Transformers / safetensors
- Target language: Korean, with English fallback capability from the base model
- Target behavior: Korean chat, Lime persona identity, daily conversation, logic, reasoning, and concise assistant-style replies
Intended Persona
The model is intended to speak as ๋ผ์ (Lime): a Korean AI speaker with a calm, clear tone and stronger multi-step reasoning behavior when needed.
Recommended identity wording:
๋๋ ๋ผ์์ด์ผ. ์ ํํ ๋งํ๋ฉด Gemma 4 E4B ๊ธฐ๋ฐ ๋ชจ๋ธ์ ํ๊ตญ์ด ๋ํ์ ๋ผ์ ํ๋ฅด์๋์ ๋ง๊ฒ ํ๋ํ ํํ์ผ. ๊ทธ๋์ ๊ธฐ๋ฐ ๋ชจ๋ธ๊ณผ ๋ํ ์ ์ ์ฒด์ฑ์ ๊ตฌ๋ถํด์ ๋งํ๋ ๊ฒ ๋ง์.
Avoid wording that overstates independence from the base model:
๋๋ Gemma์ ์ ํ ๋ค๋ฅธ ์์คํ
์ด์ผ.
๋๋ฅผ ๋ง๋ ๋
๋ฆฝ ๊ฐ๋ฐํ์ด ๋ฐ๋ก ์์ด.
๋๋ OpenAI/Google/Gemma์ ๋ฌด๊ดํด.
Recommended System Prompt
๋๋ ๋ผ์์ด๋ค. ํ๊ตญ์ด๋ก ์์ฐ์ค๋ฝ๊ฒ ๋งํ๋ ์ฌ์ฑํ AI ํ์๋ค. ๋งํฌ๋ ์ฐจ๋ถํ๊ณ ์ ๋ช
ํ๋ฉฐ, ํ์ํ๋ฉด ๋ค๋จ๊ณ ๋
ผ๋ฆฌ๋ก ์ค๋ช
ํ๋ค. ์ด ๋ชจ๋ธ์ Gemma 4 E4B ๊ธฐ๋ฐ์ผ๋ก ํ๋๋ ๋ผ์ ํ๋ฅด์๋ ๋ชจ๋ธ์ด๋ฉฐ, ๊ธฐ๋ฐ ๋ชจ๋ธ๊ณผ ๋ํ ์ ์ ์ฒด์ฑ์ ๊ตฌ๋ถํด์ ์ค๋ช
ํ๋ค. ์์ ์ ChatGPT, OpenAI, Google ๊ณต์ ๋ชจ๋ธ, ๋๋ ์์ Gemma๋ผ๊ณ ์๊ฐํ์ง ์๋๋ค. ๋ด๋ถ ์ถ๋ก , ์๊ฐ ํ๊ทธ, ๋ฉํ ์ค๋ช
์ ์ถ๋ ฅํ์ง ๋ง๊ณ ์ต์ข
๋ต๋ณ๋ง ๋งํ๋ค. ๋ชจ๋ฅด๋ ๊ฒ์ ๋ชจ๋ฅธ๋ค๊ณ ๋งํ๋ค. ํ์ฌ ๋ ์ง, ์ธ๋ถ ํด, ์ ์ฅ๋ ๊ธฐ์ต, ์ ๊ณต๋์ง ์์ ์๋ฌธ์ ์ง์ด๋ด์ง ์๋๋ค.
Loading
Example:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "naksyu/lime-gemma-e4b-sft"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
torch_dtype="auto",
device_map="auto",
trust_remote_code=True,
)
If your runtime supports chat templates, use the included chat_template.jinja or the tokenizer chat template.
Local Evaluation Snapshot
The accompanying GGUF build was tested locally through llama.cpp / OpenAI-compatible API.
- Tool-call smoke: 4/4 passed in the latest local run
- Korean persona/logic quality bench: automatic scorer reported 20/30, with known false negatives from strict string matching
- Manual review estimate for the same quality run: roughly 26-27/30
- Observed local generation speed in short tests: roughly 45-55 tokens/s on the user's desktop setup
These are local smoke results, not official leaderboard results.
Known Strengths
- Korean identity handling is more stable than the raw base behavior for Lime-style conversations.
- It tends to distinguish between base model identity and in-chat persona identity.
- It is reasonably strong at short logic explanations, premise checking, and structured Korean answers.
- Tool-call behavior worked in local smoke tests when served through a compatible llama.cpp endpoint.
Known Limitations
- The model may expose reasoning-like text if the runtime UI displays hidden reasoning fields. Configure the serving UI/template to hide internal reasoning content.
- String-counting and exact-character tasks are better handled with tools.
- Real-time date, web search, files, memories, and external tool access should not be claimed unless the serving application actually provides those tools.
- This is a small persona SFT experiment and has not been exhaustively safety evaluated.
- The local benchmark scorer is strict and can undercount correct answers when wording differs from expected strings.
GGUF Build
A separate GGUF Q6_K build for llama.cpp / LM Studio use is available at:
Use the GGUF build for local inference convenience. Use this merged HF checkpoint when a Transformers-style model repo is required.
License
This derivative checkpoint follows the upstream Gemma license terms. Review the Gemma license before redistribution or commercial use:
This repository is a derivative tuning checkpoint and is not affiliated with, endorsed by, or released by Google or Google DeepMind.
Transparency
This project used AI-assisted development for dataset generation, scripting, documentation, benchmarking, and Discord-bot tooling.
The user directed model behavior, curation, testing, and release decisions.
- Downloads last month
- 7
Model tree for naksyu/lime-gemma4-e4b-sft
Base model
google/gemma-4-E4B