Downloads · 30 days
0
CromonHarry/qwen3-8b-creativity
qwen3-8b-creativity is a machine learning model from CromonHarry. 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 apache-2.0.
Fine-tuned qwen3-8b model for evaluating story creativity (1-5 scale).
Downloads · 30 days
0
Access
Public
Updated Nov 12, 2025
Repo size
186 MB
Likes
0
Public
Click a slice to open those files.
.safetensors175 MB · 92%
From the Hugging Face model README
Fine-tuned qwen3-8b model for evaluating story creativity (1-5 scale).
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
# Load models
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/qwen3-8b",
torch_dtype=torch.float16,
device_map="auto"
)
model = PeftModel.from_pretrained(base_model, "CromonHarry/qwen3-8b-creativity")
tokenizer = AutoTokenizer.from_pretrained("CromonHarry/qwen3-8b-creativity")
# Evaluate a story
prompt = '''Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Evaluate the creativity of the following story. You need to output the following format:
[Your review]
Creativity score: [A float score from 1 to 5]
### Input:
{your_story_here}
### Response:
'''
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))