Downloads · 30 days
19
13% of all-time downloads
LezleeFirestone/comrade-ai-2
comrade-ai-2 is a machine learning model from LezleeFirestone. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Base model: mistralai/Mistral-7B-Instruct-v0.3 Adapter type: LoRA (PEFT) Author: Lezlee Firestone Released: 12/9/2025
Downloads · 30 days
19
13% of all-time downloads
All-time downloads
147
Public
Repo size
168 MB
Likes
1
Public
Click a slice to open those files.
.safetensors83.9 MB · 50%
From the Hugging Face model README
Base model: mistralai/Mistral-7B-Instruct-v0.3
Adapter type: LoRA (PEFT)
Author: Lezlee Firestone
Released: 12/9/2025
200 more entries added to training data Training data included in new version for review
comrade-ai-2 is a LoRA adapter for Mistral 7B Instruct, fine-tuned to answer
questions from a Marxist–Leninist anti-revisionist perspective.
It focuses on:
Private dataset.jsonl with ~500 manually written instruction–response pairs,
covering:
Format is Alpaca-style:
{"instruction": "...", "input": "", "output": "..."}```
## How To Use
```from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = "mistralai/Mistral-7B-Instruct-v0.3"
adapter_id = "LezleeFirestone/comrade-ai-2"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(
base_model,
device_map="auto",
torch_dtype="auto"
)
model = PeftModel.from_pretrained(model, adapter_id)
prompt = "Explain the difference between social democracy and Marxism–Leninism."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))```
## How To Use With Ollama
Create a ModelFile-
Open a file in notepad++ and save as ModelFile (no extension)
FROM mistral:7b-instruct
ADAPTER https://huggingface.co/LezleeFirestone/comrade-ai-2/resolve/main/adapter_model.safetensors
PARAMETER temperature 0.7 PARAMETER num_ctx 8192```
Then
ollama run comrade-ai-2
Base model: see mistralai/Mistral-7B-Instruct-v0.3 license
LoRA weights: Creative Commons Attribution–NonCommercial 4.0 International (CC BY-NC 4.0)
Copyright © 2025 Lezlee Firestone
This LoRA is for political education, study, and experimentation. It is not a replacement for real-world organising or reading the primary texts.