Downloads · 30 days
51
3% of all-time downloads
ViorikaAI-org/MicroLlama-v2
MicroLlama-v2 is a text generation model from ViorikaAI-org. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
<p align="center" <img src="banner.jpg" alt="MicroLlama Banner" width="100%" </p
Downloads · 30 days
51
3% of all-time downloads
All-time downloads
2K
Public
Parameters
45.4M
182 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors182 MB · 98%
From the Hugging Face model README
The second generation of the MicroLlama series. This is an ultra-compact, 45-million parameter language model trained from scratch and fine-tuned using Supervised Fine-Tuning (SFT) on the clean Alpaca dataset.
User: Tell me a joke.
Assistant: One example of an AI system could be that use AI to learn more about the potential consequences or disadvantages of humanity and what is expected? It can also cause data in both languages.
User: Write a sentence about a dog.
Assistant: A cake has an easy way to stay in the top of the mountain, but there are plenty of food that can have many benefits and resources available on people's favorite?
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("ViorikaAI-org/MicroLlama-v2")
model = AutoModelForCausalLM.from_pretrained("ViorikaAI-org/MicroLlama-v2")
prompt = "user: How are you?\nassistant: <s> "
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0]))