roast_engine / README.md
photron29's picture
Update README.md
08388a1 verified
|
Raw History Blame Contribute Delete
2.33 kB
---
base_model: Qwen/Qwen2.5-7B-Instruct
language:
- en
- hi
tags:
- gguf
- ollama
- hinglish
- discord-bot
- roast
---
# Roast Engine by Photron (`photron29/roast_engine`)
A fine-tuned `Qwen2.5-7B-Instruct` (`Q4_K_M` GGUF, ~4.68 GB) built for Discord roast bots. Replies with one short, savage one-liner in Romanized Hinglish by default (or English if prompted in English).
The `system` prompt and inference `params` (`temperature: 0.5`, `top_p: 0.8`, `num_predict: 40`, `num_ctx: 2048`) are bundled in this repo—Ollama loads them automatically.
## 1. Install & Run Locally (Ollama)
Make sure [Ollama](https://ollama.com) is installed, then pull and test the model with one command:
```bash
ollama run hf.co/photron29/roast_engine
```
*(Optional)* Give it a shorter local name for your bot code:
```bash
ollama cp hf.co/photron29/roast_engine photron-roast-engine
```
*(Optional)* Verify the bundled system prompt and parameters loaded properly:
```bash
ollama show hf.co/photron29/roast_engine --modelfile
```
## 2. Use in Your Discord Bot
Once pulled, Ollama runs a local API server at `http://localhost:11434`. Click your language below:
<details open>
<summary><b>JavaScript / Node.js (discord.js)</b></summary>
```javascript
const res = await fetch("http://localhost:11434/api/chat", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
model: "hf.co/photron29/roast_engine",
messages: [{ role: "user", content: message.content }],
stream: false
})
});
const data = await res.json();
const roast = data.message.content;
```
</details>
<details>
<summary><b>Python (discord.py)</b></summary>
```python
import requests
res = requests.post(
"http://localhost:11434/api/chat",
json={
"model": "hf.co/photron29/roast_engine",
"messages": [{"role": "user", "content": message.content}],
"stream": False,
},
)
roast = res.json()["message"]["content"]
```
</details>
## Notes
* **Hardware:** Works on ~4–6 GB VRAM GPUs (Ollama automatically offloads extra layers to system RAM if needed).
* **Remote Bot Hosting:** If your Discord bot runs on a separate server/VPS instead of the same PC as Ollama, expose port `11434` through a tunnel (e.g., Cloudflare Tunnel) or reverse proxy with authentication.