Views
No views yet
| Property | Value |
|---|---|
| Architecture | LFM2 hybrid (Lfm2ForCausalLM) |
| Parameters | 2.69B |
| Layers | 30 |
| Context configured by this checkpoint | 128,000 tokens |
| Vocabulary | 128,000 tokens |
| Weight format | BF16 Safetensors, 4 shards |
| Chat format | ChatML-like template with tool-use support |
| Primary tested language | English |
| License | LFM Open License v1.0 |
model-0000x-of-00004.safetensors files are the actual BF16 model weights. model.safetensors.index.json maps every tensor to its shard. These are standard Transformers files and should be kept together.1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "Unmid/Mew1-2.6B"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 dtype=torch.bfloat16,
10 device_map="auto",
11)
12
13messages = [
14 {"role": "system", "content": "You are a helpful assistant."},
15 {"role": "user", "content": "Write a short story about a cat exploring the Moon."},
16]
17
18input_ids = tokenizer.apply_chat_template(
19 messages,
20 add_generation_prompt=True,
21 return_tensors="pt",
22).to(model.device)
23
24output = model.generate(
25 input_ids,
26 max_new_tokens=512,
27 do_sample=True,
28 temperature=0.7,
29 top_k=50,
30 top_p=0.9,
31 repetition_penalty=1.1,
32)
33
34print(tokenizer.decode(output[0, input_ids.shape[-1]:], skip_special_tokens=True))ggufs/ directory remain available. No model artifacts were removed during the reorganization.| Quant | Size | Suggested use | Download |
|---|---|---|---|
| Q2_K | 1.09 GB | Minimum memory | GGUF |
| Q4_0 | 1.59 GB | Fast legacy 4-bit | GGUF |
| Q4_K_M | 1.67 GB | Recommended balance | GGUF |
| Q5_K_M | 1.94 GB | Higher quality | GGUF |
| Q6_K | 2.22 GB | High quality | GGUF |
| Q8_0 | 2.87 GB | Maximum quantized quality | GGUF |