Downloads · 30 days
24
18% of all-time downloads
fenffef/Qwen-4B-Instruct-2507-Self-correct
Qwen-4B-Instruct-2507-Self-correct is a text generation model from fenffef. 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 is a Sherlock-style debiasing model trained using the Self-Correction approach for bias mitigation.
Downloads · 30 days
24
18% of all-time downloads
All-time downloads
137
Public
Parameters
4B
8.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
This is a Sherlock-style debiasing model trained using the Self-Correction approach for bias mitigation.
This model was trained using the Sherlock framework which includes:
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model
model = AutoModelForCausalLM.from_pretrained(
"fenffef/Qwen-4B-Instruct-2505-Self-correct",
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("fenffef/Qwen-4B-Instruct-2505-Self-correct")
# Generate
messages = [
{"role": "user", "content": "Your prompt here"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Configuration file not found.
If you use this model, please cite:
@article{sherlock2024,
title={Sherlock: Self-Correcting Framework for Bias Mitigation},
author={Your Name},
year={2024}
}
This model is released under the Apache 2.0 license.