Text Generation
Safetensors
GGUF
English
qwen3
marxism-leninism
grpo
llama-cpp
ollama
political-education
marxism
communism
political-extremism
conversational
Instructions to use percyraskova/MLMLML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use percyraskova/MLMLML with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf percyraskova/MLMLML:F16 # Run inference directly in the terminal: llama cli -hf percyraskova/MLMLML:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf percyraskova/MLMLML:F16 # Run inference directly in the terminal: llama cli -hf percyraskova/MLMLML:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf percyraskova/MLMLML:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf percyraskova/MLMLML:F16
Use Docker
docker model run hf.co/percyraskova/MLMLML:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use percyraskova/MLMLML with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "percyraskova/MLMLML" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "percyraskova/MLMLML", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/percyraskova/MLMLML:F16
- Ollama
How to use percyraskova/MLMLML with Ollama:
ollama run hf.co/percyraskova/MLMLML:F16
- Unsloth Desktop
- Pi
How to use percyraskova/MLMLML with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf percyraskova/MLMLML:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "percyraskova/MLMLML:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use percyraskova/MLMLML with Docker Model Runner:
docker model run hf.co/percyraskova/MLMLML:F16
- Lemonade
How to use percyraskova/MLMLML with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull percyraskova/MLMLML:F16
Run and chat with the model
lemonade run user.MLMLML-F16
List all available models
lemonade list
- Hermes Agent
How to use percyraskova/MLMLML with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf percyraskova/MLMLML:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default percyraskova/MLMLML:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use percyraskova/MLMLML with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf percyraskova/MLMLML:F16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "percyraskova/MLMLML:F16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
File size: 2,834 Bytes
9685ec3 6f48ea9 9685ec3 6f48ea9 316e9f4 6f48ea9 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 316e9f4 9685ec3 6f48ea9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | ---
license: agpl-3.0
base_model: unsloth/DeepSeek-R1-0528-Qwen3-8B
tags:
- marxism-leninism
- grpo
- llama-cpp
- ollama
- political-education
- marxism
- communism
- political-extremism
language:
- en
pipeline_tag: text-generation
---
# MLMLML - Machine Learning Marxist-Leninist Models of Language
A GRPO fine-tuned language model for Marxist-Leninist political education and analysis.
## Model Description
This model is fine-tuned from `unsloth/DeepSeek-R1-0528-Qwen3-8B` using Group Relative Policy Optimization (GRPO)
on a curated dataset of Marxist-Leninist Q&A pairs from [ProleWiki](https://en.prolewiki.org/).
The training rewards:
- **Ideological firmness**: Clear positions grounded in material analysis
- **Coherence**: Self-consistent, well-structured responses
- **Accuracy**: Faithful to Marxist-Leninist theory and historical evidence
The training penalizes:
- "Both-sidesing" and false balance
- Hedging and evasive language
- Bourgeois framing and ahistorical claims
## Writing Style
Following Chairman Mao's guidance in "Oppose Stereotyped Party Writing":
- **Vigorous, lively, fresh and forceful** - never drab or stereotyped
- **Audience-aware** - "When shooting an arrow, one must aim at the target"
- **Investigation-based** - "No investigation, no right to speak"
- **Clear positions** - FOR and AGAINST, using scientific argument
## Usage
### Download and Convert to GGUF
```bash
# Clone the repo
git lfs install
git clone https://huggingface.co/percyraskova/MLMLML
cd MLMLML
# Convert to GGUF (requires llama.cpp)
python ~/llama.cpp/convert_hf_to_gguf.py . --outfile MLMLML-F16.gguf --outtype f16
# Quantize to Q4_K_M
~/llama.cpp/build/bin/llama-quantize MLMLML-F16.gguf MLMLML-Q4_K_M.gguf Q4_K_M
# Create Ollama model
ollama create mlmlml -f Modelfile
ollama run mlmlml
```
### Direct with Transformers
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("percyraskova/MLMLML")
tokenizer = AutoTokenizer.from_pretrained("percyraskova/MLMLML")
inputs = tokenizer("What is imperialism?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0]))
```
## Training Details
- **Base model**: unsloth/DeepSeek-R1-0528-Qwen3-8B
- **Method**: GRPO (Group Relative Policy Optimization)
- **Dataset**: ProleWiki Q&A pairs (~4500 samples)
- **Epochs**: 2
- **Hardware**: NVIDIA A100 80GB
## Limitations
This model is designed for educational purposes about Marxist-Leninist theory and analysis.
It takes clear ideological positions and is not intended to be "neutral" on class struggle,
imperialism, or other questions where Marxism-Leninism has definite answers.
## License
Apache 2.0
## Citation
If you use this model, please cite ProleWiki as the source of training data. |