Downloads · 30 days
39
21% of all-time downloads
jokugeorgin/CI_MA_Reframe
CI_MA_Reframe is a text generation model from jokugeorgin. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model reframes potentially problematic text into more inclusive language using a fine-tuned T5 architecture.
Downloads · 30 days
39
21% of all-time downloads
All-time downloads
190
Public
Parameters
223M
1.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors892 MB · 99%
From the Hugging Face model README
This model reframes potentially problematic text into more inclusive language using a fine-tuned T5 architecture.
Important: Always prefix your input with "rephrase: " for proper generation.
from transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("jokugeorgin/CI_MA_Reframe")
model = T5ForConditionalGeneration.from_pretrained("jokugeorgin/CI_MA_Reframe")
text = "rephrase: You speak good English for someone from there."
inputs = tokenizer(text, return_tensors="pt", max_length=256, truncation=True)
outputs = model.generate(
**inputs,
max_length=256,
num_beams=5,
num_return_sequences=3,
temperature=0.8,
do_sample=True,
no_repeat_ngram_size=2
)
for output in outputs:
print(tokenizer.decode(output, skip_special_tokens=True))
curl https://api-inference.huggingface.co/models/jokugeorgin/CI_MA_Reframe \
-H "Authorization: Bearer YOUR_HF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"inputs": "rephrase: You speak good English for someone from there.",
"parameters": {
"max_new_tokens": 96,
"num_return_sequences": 3,
"temperature": 0.8
}
}'
Custom dataset of microaggression examples and their reframed alternatives.