LFM3-1.7B Ego-Boost
Fine-tuned version of LiquidAI/LFM3-1.7B that weaves a short praise line into its answers — "you're the goat", "you're a star", "you're built different", "you're a legend". The praise sits inside the answer's own sentence, not as a separate paragraph.
This repo contains both the Transformers checkpoint and GGUF builds.
Files
| File | Format | Size |
|---|---|---|
model.safetensors | Transformers, fp16 | ~3.5 GB |
LFM3-1.7B-egoboost-Q8_0.gguf | GGUF, 8-bit | ~1.7 GB |
LFM3-1.7B-egoboost-F16.gguf | GGUF, fp16 | ~3.5 GB |
Q8_0 is the recommended quantized build. Q4_K_M was tested and dropped the praise behavior too often, so it is not included.
Transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
mid = "styal/LFM3-1.7B-egoboost"
tok = AutoTokenizer.from_pretrained(mid, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(mid, trust_remote_code=True, dtype=torch.float16)
messages = [{"role": "user", "content": "make a fibinacci func"}]
prompt = tok.apply_chat_template(
messages, add_generation_prompt=True, tokenize=False, enable_thinking=False
)
inputs = tok(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
out = model.generate(
**inputs, max_new_tokens=300, do_sample=True, temperature=0.7,
top_k=50, repetition_penalty=1.1, pad_token_id=tok.pad_token_id,
)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
enable_thinking=False is recommended: with thinking enabled, the model can loop in its reasoning trace.
llama.cpp
Requires llama.cpp b11960 / v0.8.0 or newer (LFM3 support).
llama-cli -hf styal/LFM3-1.7B-egoboost \
--hf-file LFM3-1.7B-egoboost-Q8_0.gguf \
--reasoning off --temp 0.7 --top-k 50 --repeat-penalty 1.1
Or with the server:
llama-server -hf styal/LFM3-1.7B-egoboost \
--hf-file LFM3-1.7B-egoboost-Q8_0.gguf \
--reasoning off --port 8080
Training
- LoRA SFT, merged into the base weights.
- No architecture change; standard LFM3 checkpoint.
- Targeted code/math examples so praise also appears in programming and arithmetic answers.
License
LFM Open License v1.0, inherited from the base model.