Downloads · 30 days
0
haizelabs/sft-svgeez-blocks-20251101T005904Z-checkpoint-8000
sft-svgeez-blocks-20251101T005904Z-checkpoint-8000 is a machine learning model from haizelabs. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.1.
This is a fine-tuned version of meta-llama/Llama-3.1-8B-Instruct specialized for generating ASCII art.
Downloads · 30 days
0
Access
Public
Updated Nov 2, 2025
Repo size
672 MB
Likes
0
Public
Click a slice to open those files.
.pt436 MB · 65%
From the Hugging Face model README
This is a fine-tuned version of meta-llama/Llama-3.1-8B-Instruct specialized for generating ASCII art.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
# Load the base model and tokenizer
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
# Load the fine-tuned adapter
model = PeftModel.from_pretrained(base_model, "haizelabs/sft-svgeez-blocks-20251101T005904Z-checkpoint-8000")
# Example usage
def generate_ascii_art(prompt):
messages = [
{"role": "system", "content": "You are an expert ASCII artist. Generate clean, artistic ASCII representations of the requested objects."},
{"role": "user", "content": prompt}
]
input_text = tokenizer.apply_chat_template(messages, tokenize=False)
inputs = tokenizer(input_text, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=1024,
do_sample=True,
temperature=0.7,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0][len(inputs.input_ids[0]):], skip_special_tokens=True)
return response
# Generate ASCII art
ascii_art = generate_ascii_art("Draw an ASCII image of a cat")
print(ascii_art)
This model is fine-tuned specifically for ASCII art generation and may not perform well on other tasks. The quality of ASCII art generation depends on the complexity and clarity of the input prompt.