sweatSmile/marx-dataset
Viewer β’ Updated β’ 1k β’ 25 β’ 3
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.
SFTTrainer from trlfrom 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))
Base model
facebook/opt-350m