Downloads · 30 days
40
20% of all-time downloads
MatteoKhan/pythia-70m-hybrid
pythia-70m-hybrid is a text generation model from MatteoKhan. 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.
Pythia-Hybrid-140M is an experimental hybrid language model that merges the capabilities of two Pythia variants. Built using MergeKit, this model is designed to balance performance and efficiency while offering strong…
Downloads · 30 days
40
20% of all-time downloads
All-time downloads
201
Public
Parameters
70.4M
282 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors282 MB · 99%
From the Hugging Face model README
Pythia-Hybrid-140M is an experimental hybrid language model that merges the capabilities of two Pythia variants. Built using MergeKit, this model is designed to balance performance and efficiency while offering strong text generation capabilities.
🔗 Created by: Matteo Khan
🎓 Affiliation: Apprentice at TW3 Partners (Generative AI Research)
📍 License: MIT
🔗 Connect with me on LinkedIn
🔍 Model on Hugging Face
This model is primarily intended for research and experimentation in hybrid model optimization. Potential use cases include:
While Pythia-Hybrid-140M offers enhanced capabilities, it also inherits certain limitations from its parent models:
This is not a newly trained model, but rather a merge of existing models using the following configuration:
merge_method: linear
dtype: float16
models:
- model: "EleutherAI/pythia-70m"
parameters:
t: 1.0
weight: 0.5
- model: "EleutherAI/pythia-70m-deduped"
parameters:
t: 1.0
weight: 0.5
parameters:
normalize: true
int8_mask: false
layers:
- pattern: "model.*"
📊 No formal evaluation has been conducted yet. Users are encouraged to benchmark and share feedback!
By utilizing model merging rather than training from scratch, Pythia-Hybrid-140M significantly reduces computational and environmental costs.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "MatteoKhan/Pythia-Hybrid-140M"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example usage
prompt = "Write a short poem about artificial intelligence."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=200)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
📝 Pythia-70M
@misc{biderman2023pythia,
title={Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling},
author={Stella Biderman et al.},
year={2023},
eprint={2304.01373},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
📩 Feedback & Contact: Reach out via Hugging Face.
🎉 Happy Experimenting! 🚀