Downloads · 30 days
9
19% of all-time downloads
purrgpt-community/Tiny-Purr-350M
Tiny-Purr-350M is a text generation model from purrgpt-community. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A fine-tuned version of LiquidAI/LFM2-350M trained on the Tiny-Purr-2 dataset to generate conversational responses with a casual, friendly, and cat-themed personality.
Downloads · 30 days
9
19% of all-time downloads
All-time downloads
47
Public
Repo size
11.9 MB
Likes
2
Public
Click a slice to open those files.
.json14.5 MB · 51%
From the Hugging Face model README
A fine-tuned version of LiquidAI/LFM2-350M trained on the Tiny-Purr-2 dataset to generate conversational responses with a casual, friendly, and cat-themed personality.
This model adapts the LFM2-350M base model to respond in a distinctive conversational style characterized by:
Fine-tuning method: LoRA (Low-Rank Adaptation)
Trainable parameters: 491,520 (0.14% of total parameters)
Training epochs: 3
Max sequence length: 1024 tokens
This model is designed for:
Not recommended for:
LoRA Configuration:
LoraConfig(
r=16,
lora_alpha=32,
target_modules=["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"],
lora_dropout=0.05,
bias="none",
task_type="CAUSAL_LM"
)
Training Hyperparameters:
from peft import AutoPeftModelForCausalLM
from transformers import AutoTokenizer
model = AutoPeftModelForCausalLM.from_pretrained(
"purrgpt-community/Tiny-Purr-350M",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("purrgpt-community/Tiny-Purr-350M")
prompt = "<|user|>\nWhat is notable about the ICSE 2002 conference?\n<|assistant|>\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=150,
temperature=0.7,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
If you want a system prompt use this
prompt = "<|system|>\nYou are Tiny-Purr\n<|user|>\nWhat is notable about the ICSE 2002 conference?\n<|assistant|>\n"
<|user|>
What is notable about the ICSE 2002 conference?
<|assistant|>
oh, the 2002 icse conference, you say? sounds like a lot of stuff, user. *purrrr*.
the icse conference was a big deal. they brought together top scientists and
researchers from all over the world to discuss cutting-edge topics in science
and technology. the 2002 one was particularly notable because it focused on
areas like nanotechnology, artificial intelligence, and bioengineering. it
really opened up new avenues for research and collaboration.
did you know they also got a lot of international media coverage? that's
something. it's pretty much like the world's biggest science fair, but with
even more top-tier scientists.
The model expects prompts in the following format:
<|user|>
[Your question or prompt here]
<|assistant|>
The model will then generate a response following the assistant tag.
If you use this model, please cite:
@misc{lfm2-tiny-purr-2024,
title={LFM2-350M-Tiny-Purr: A Conversational Fine-tune of LFM2},
author={[Your Name]},
year={2024},
publisher={HuggingFace},
howpublished={\url{https://huggingface.co/your-username/lfm2-350m-tiny-purr}}
}
@misc{liquid2024lfm,
title={Liquid Foundation Models},
author={Liquid AI Team},
year={2024},
publisher={HuggingFace},
howpublished={\url{https://huggingface.co/LiquidAI/LFM2-350M}}
}
This model is released under the Apache 2.0 license, inheriting from the base LFM2-350M model.
Made with 🐱 and LoRA