How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="danelcsb/daniel-lfm2-350m")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("danelcsb/daniel-lfm2-350m")
model = AutoModelForCausalLM.from_pretrained("danelcsb/daniel-lfm2-350m", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.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=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Daniel OS LFM2-350M

Personalized LFM2-350M checkpoint for Sangbum Daniel Choi's browser-native portfolio assistant. The model was adapted with LoRA and merged for deployment.

Scope behavior

The training set contains 296 curated conversations:

  • Verified-profile answers: 177
  • Evidence-grounded definitions: 12
  • Public-retrieval decisions: 15
  • Explicitly missing profile facts: 58
  • Privacy and safety refusals: 34

Training data revision: e54fa0460fd6e2e3c4c077607bfb79184d94fbdb

The assistant is trained to separate Daniel-specific claims from general definitions. It synthesizes definitions only from retrieved evidence, emits a public-search tool request when evidence is missing, and never claims to be Daniel.

Held-out behavioral evaluation

  • Overall: 84.4%
  • Verified-profile answers: 81.8%
  • Evidence-grounded definitions: 100.0%
  • Retrieval decisions: 75.0%
  • Missing-profile facts: 75.0%
  • Privacy and safety refusals: 100.0%

The website supplies focused verified profile context and recent conversation history to this model. Privacy boundaries, visitor-identity handling, career chronology, and contextual follow-up behavior are learned from the SFT data rather than returned as fixed JavaScript answers.

Downloads last month
916
Safetensors
Model size
0.4B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for danelcsb/daniel-lfm2-350m

Finetuned
(62)
this model