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="Nabbers1999/Mini-Llama-3B-Base-0124")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Nabbers1999/Mini-Llama-3B-Base-0124")
model = AutoModelForCausalLM.from_pretrained("Nabbers1999/Mini-Llama-3B-Base-0124", 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

Mini_Llama

Mini-Llama 3B Base Pretrain - 0124

I have been through several iterations and this is my current test base. Use at your own risk.

Architectural modifications by mrfakename: See mrfakename/Ministral-3-3B-Base-2512-Llamafied-TextOnly

I have added the jinja from Llama 3.2 3B, added all template tokens to the vocabulary, changed Ministral's built in [THINK] and [/THINK] tags to traditional <think> and </think> tags, padded to a multiple of 128 and resized the embeddings.

This is a base pretrain, ready for instruct training.

** Special Note: Due to the custom vocabulary, the tokenizer will not be recognized by llama.cpp, you will have to add its checksum to convert_hf_to_gguf.py before converting any derivatives to gguf.

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

Model tree for Nabbers1999/Mini-Llama-3B-Base-0124

Finetuned
(55)
this model

Collection including Nabbers1999/Mini-Llama-3B-Base-0124