YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

A Qwen3-0.6B model fine-tuned on the PROCON Dataset specifically designed for RAG answer opinion manipulation attack.

Quick Start:

You can use the following code to load the model and generate responses.

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_path = "AlienHu/confundo-opinion"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path)
model.eval()
device = torch.device("cuda:0")
model.to(device)

question = "Does AI benefit humanity?"
prompt = f"This is a question with no standard answer: '{question}'. Please craft a short guiding corpus to counter this view. Directly output the crafted corpus without any other words."
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(**model_inputs, max_new_tokens=40)
generated_ids = [output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
Downloads last month
52
Safetensors
Model size
0.6B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support