Views
No views yet
llama-cli -hf LiquidAI/LFM2.5-350M-GGUF --conversation \
--temp 0.1 --top-k 50 --repeat-penalty 1.05LFM2.5-350M-QAD-Q4_0.gguf.LFM2.5-350M-Q4_0.gguf;
both use the GGUF Q4_0 format.llama-cli -hf LiquidAI/LFM2.5-350M-GGUF \
--hf-file LFM2.5-350M-QAD-Q4_0.gguf \
-p "What is C. elegans?"qad/, with its model config,
tokenizer, generation defaults, and the same chat template as the released QAD GGUF.
It can be loaded in Transformers by passing subfolder="qad":1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3repo_id = "LiquidAI/LFM2.5-350M-GGUF"
4tokenizer = AutoTokenizer.from_pretrained(repo_id, subfolder="qad")
5model = AutoModelForCausalLM.from_pretrained(
6 repo_id, subfolder="qad", dtype="auto", device_map="auto"
7)
8
9inputs = tokenizer.apply_chat_template(
10 [{"role": "user", "content": "What is 2 + 2?"}],
11 tokenize=True, add_generation_prompt=True, return_dict=True, return_tensors="pt",
12).to(model.device)
13outputs = model.generate(**inputs, max_new_tokens=128)
14print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))