Downloads · 30 days
35
12% of all-time downloads
marioparreno/emojify-sft
emojify-sft is a text generation model from marioparreno. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of unsloth/gemma-3-270m-it for emojify conversion. It was trained using LoRA (Low-Rank Adaptation) with the unsloth library for efficient fine-tuning.
Downloads · 30 days
35
12% of all-time downloads
All-time downloads
289
Public
Parameters
268M
827 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors536 MB · 65%
From the Hugging Face model README
This model is a fine-tuned version of unsloth/gemma-3-270m-it for emojify conversion. It was trained using LoRA (Low-Rank Adaptation) with the unsloth library for efficient fine-tuning.
This model converts natural language text into emoji representations, learning to identify the most appropriate emojis that capture the semantic meaning and emotional content of the input text.
train_on_responses_onlyTraining was monitored using Weights & Biases:
This model was trained on the marioparreno/emojify-sft dataset.
1b1ee9e1b1ee9efd92f1dbba4b3141e53b97e0d466981baThe following examples show the model's predictions on the test set:
Example predictions were logged to Weights & Biases during training. Please view the training run for detailed examples. To see prediction examples, visit the W&B dashboard linked above and check the "eval/examples" table.
from unsloth import FastModel
from unsloth.chat_templates import get_chat_template
# Load the fine-tuned model
model, tokenizer = FastModel.from_pretrained(
model_name="marioparreno/emojify-sft",
max_seq_length=256,
load_in_4bit=True,
)
# Setup chat template
tokenizer = get_chat_template(
tokenizer,
chat_template="gemma3",
)
# Prepare input
messages = [
{"role": "system", "content": "Translate this text to emoji:"},
{"role": "user", "content": "I love programming in Python!"}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",
).to("cuda")
# Generate
outputs = model.generate(
input_ids=inputs,
max_new_tokens=32,
temperature=1.0,
top_p=0.95,
top_k=64,
)
# Decode
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
# Chat Template Parts
instruction_part: "<start_of_turn>user
"
response_part: "<start_of_turn>model
"
# Evaluation
eval_strategy: "steps"
eval_steps: 50
logging_steps: 10
This model card was automatically generated as part of the training pipeline.