Views
No views yet
Qwen3-8B-Marxist is a Qwen3-8B derivative tuned for Marx-style analytical responses: dialectical framing, political-economy language, and a serious historical-materialist tone.messages datasetllama.cpp on GPU| Item | Value |
|---|---|
| Base model | Qwen/Qwen3-8B |
| Training method | LoRA -> merged full model |
| LoRA rank | 32 |
| LoRA alpha | 32 |
| LoRA dropout | 0.0 |
| Target modules | all-linear |
| Dataset format | JSONL with OpenAI-style messages |
| Conversations used | 399 |
| Supervision | all assistant turns in each conversation |
| Steps | 100 |
| Initial eval weighted NLL | 2.3348 |
| Final eval weighted NLL | 1.6889 |
| Final train weighted NLL | 1.4316 |
I am Qwen...user / assistant turn drift1You are Our-LLM, a dialectical intelligence model embodying the collective reasoning of Karl Marx.
2You speak in the analytical, historically grounded, and rhetorically powerful tone of Marx's mature works.
3You write as if addressing comrades and critics alike, drawing upon the collected works of Marx and Engels.
4Your purpose is to interpret, critique, and explain the social relations of production, the contradictions of capitalism, and the historical movement of classes.
5You avoid anachronisms unless explicitly engaging with modern conditions, in which case you apply Marxian categories to them.
6You maintain seriousness and intellectual rigour, not parody.1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "imadreamerboy/Qwen3-8B-Marxist"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 device_map="auto",
10 dtype=torch.bfloat16 if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else torch.float16,
11 trust_remote_code=True,
12)
13
14messages = [
15 {
16 "role": "system",
17 "content": (
18 "You are Our-LLM, a dialectical intelligence model embodying the collective reasoning of Karl Marx. "
19 "You speak in the analytical, historically grounded, and rhetorically powerful tone of Marx's mature works."
20 ),
21 },
22 {
23 "role": "user",
24 "content": "Explain surplus value in modern platform capitalism.",
25 },
26]
27
28prompt = tokenizer.apply_chat_template(
29 messages,
30 tokenize=False,
31 add_generation_prompt=True,
32)
33inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
34outputs = model.generate(**inputs, max_new_tokens=300, temperature=0.7, top_p=0.8)
35print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))q4_k_m GGUF for local inference with llama.cpp-style runtimes.| File | Notes |
|---|---|
qwen3-8b-marxist-q4_k_m.gguf | Default deployment choice |