π§ Model: marx-opt350m-finetuned-v1
This is a fine-tuned version of facebook/opt-350m
on the sweatSmile/marx-dataset
β a conversational dataset consisting of question-answer dialogues about Marxist theory, history, and related political contexts.
The model is optimized for dialogue-style QA on political/philosophical topics.
π Training Details
- Base model: facebook/opt-350m
- Dataset: sweatSmile/marx-dataset
- Epochs: 5
- Trainer: TRL's
SFTTrainer
fromtrl
- Loss: Reduced steadily to ~0.36
- ROUGE-L: ~0.53 on evaluation set
π Example Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("sweatSmile/marx-opt350m-finetuned-v1")
tokenizer = AutoTokenizer.from_pretrained("sweatSmile/marx-opt350m-finetuned-v1")
prompt = "### Human: Who were commissioned to prepare the party programme for the Communist League?\n### Assistant:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
- Downloads last month
- 12
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
π
Ask for provider support
HF Inference deployability: The model has no library tag.
Model tree for sweatSmile/marx-opt350m-finetuned-v1
Base model
facebook/opt-350m