Downloads · 30 days
18
49% of all-time downloads
RichardErkhov/abideen_-_Heimer-ipo-TinyLlama-1.1B-awq
abideen_-_Heimer-ipo-TinyLlama-1.1B-awq is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
18
49% of all-time downloads
All-time downloads
37
Public
Parameters
1.1B
766 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors766 MB · 99%
How the weights are stored.
I32969M · 88%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Heimer-ipo-TinyLlama-1.1B - AWQ
license: apache-2.0 tags:

Check out the experiment details in this report

r=8
lora_alpha=16
lora_dropout=0.05
bias="none"
task_type="CAUSAL_LM"
target_modules=['k_proj', 'gate_proj', 'v_proj', 'up_proj', 'q_proj', 'o_proj', 'down_proj']
per_device_train_batch_size=2
gradient_accumulation_steps=4
gradient_checkpointing=True
learning_rate=5e-5
lr_scheduler_type="cosine"
max_steps=50
optim="paged_adamw_32bit"
warmup_steps=10
beta=0.1
max_prompt_length=1024
max_length=1536
loss="ipo"
Here's a Colab notebook to run Heimer-TinyLLama-1.1B in 4-bit precision on a free T4 GPU.
!pip install -qU transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "abideen/Heimer-ipo-TinyLlama-1.1B"
messages = [{"role": "user", "content": "Explain what is Data science."}]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
"What is Data Science? A data scientist is an individual who has a passion for data and knowledge of the technology that can be used to help make sense of data. Data scientists are often involved in the development of new software and software platforms, as well as analyzing and interpreting data. What are the Important components of Data Science?