terzastella commited on
Commit
c528aec
·
verified ·
1 Parent(s): 9271679

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -41
README.md CHANGED
@@ -16,73 +16,74 @@ pipeline_tag: text-generation
16
 
17
  # LARP AI
18
 
19
- Un piccolo modello italiano per chattare a caso. Non è un assistente: resta in
20
- scena, risponde con sicurezza anche quando dice cazzate, e non spiega che è un
21
- modello. È un esperimento per divertirsi, non uno strumento.
22
 
23
- ## Cosa aspettarsi
24
 
25
- - «ciao» → apre una scena inventata al momento
26
- - domande piatte → risposte decise, anche sbagliate
27
- - registro: slang da gruppo WhatsApp, italiano contemporaneo, niente fantasy
28
- per default
29
 
30
- Non aspettarti testi lunghi su comando, poesie di cento strofe o risposte
31
- affidabili. Il divertimento nasce dal fatto che sbaglia con faccia seria.
32
 
33
- È un modello **italian-first**: capisce l'inglese, ma risponde di default in
34
- italiano e passa all'inglese solo se glielo chiedi esplicitamente. Non è
35
- bilingue in modo affidabile.
 
36
 
37
- ## Come usarlo
38
 
39
- Percorso consigliato, con Ollama già avviato:
40
 
41
  ```bash
42
  python chat.py --model larp-ai:1.7b-final
43
  ```
44
 
45
- `chat.py` e `guard.py` sono in questa cartella e usano solo la libreria
46
- standard di Python. Parlano esclusivamente con `127.0.0.1:11434`: nessuna
47
- chiamata a Internet, nessun dato inviato fuori dal PC. Funzionano anche senza
48
- Wi-Fi, una volta installati Ollama e il modello.
49
 
50
- `chat.py` include un filtro a pattern su parole chiave note (tragedie, cronaca
51
- nera, odio, insulti razzisti): prova a intercettarle e non mette i prompt
52
- bloccati nella cronologia. **Non è una garanzia**: refusi, parafrasi e
53
- menzioni indirette passano. Epstein e le torri gemelle non sono "protette" in
54
- modo affidabile nemmeno lì.
55
 
56
- Per giocare senza filtro, prima crea il modello da questa cartella:
57
 
58
  ```bash
59
  ollama create larp-ai -f Modelfile
60
  ollama run larp-ai
61
  ```
62
 
63
- Il `Modelfile` punta al GGUF incluso in `gguf/` e contiene già system prompt e
64
- parametri. In questo caso il modello è grezzo: non garantisce nulla su tragedie
65
- e nullità varie. Non usarlo per informative serie.
 
66
 
67
- ## Modello
68
 
69
  | | |
70
  |---|---|
71
  | Base | Qwen/Qwen3-1.7B (Apache-2.0) |
72
- | Parametri | 1,74 B |
73
- | Adapter | LoRA r=16, alpha=32, 17,4 M parametri addestrabili |
74
  | Training | SFT, QLoRA nf4, RTX 3060 12 GB |
75
- | Dati | sintetici in italiano, CC0-1.0 |
76
- | Licenza pesi | Apache-2.0 |
77
 
78
- ## Limiti
79
 
80
- Non è un assistente, non è allineato, non è affidabile. Può essere volgare e
81
- offensivo per scelta. Non esiste un guardrail garantito: il modello grezzo può
82
- inventare su tragedie reali, e il filtro del wrapper può mancare le parafrasi.
83
- Non usarlo dove serve accuratezza.
84
 
85
- ## Licenza
86
 
87
- Apache-2.0. Derivato di Qwen/Qwen3-1.7B (Apache-2.0), NOTICE incluso.
88
- Dati di training generati con modelli Apache-2.0 e distribuiti CC0-1.0.
 
16
 
17
  # LARP AI
18
 
19
+ A small Italian model for chatting nonsense. It is not an assistant: it stays
20
+ inside a scene, answers with total confidence even when it is wrong, and never
21
+ explains that it is a model. It is an experiment for fun, not a tool.
22
 
23
+ ## What to expect
24
 
25
+ - `ciao` → opens an invented scene
26
+ - flat questions → confident, often wrong answers
27
+ - register: Italian WhatsApp slang, contemporary setting, no fantasy by default
 
28
 
29
+ Do not expect long texts on demand, hundred-stanza poems, or reliable answers.
30
+ The joke is that it is dead serious while talking nonsense.
31
 
32
+ **Training note:** the model was fine-tuned **strictly on Italian examples**.
33
+ The base model (Qwen3-1.7B) is multilingual, so it can understand some English,
34
+ but it answers in Italian by default and switches to English only when asked
35
+ explicitly. It is not a reliable bilingual model.
36
 
37
+ ## Usage
38
 
39
+ Recommended, with Ollama already running:
40
 
41
  ```bash
42
  python chat.py --model larp-ai:1.7b-final
43
  ```
44
 
45
+ `chat.py` and `guard.py` are included in this repository and use only the
46
+ Python standard library. They talk exclusively to `127.0.0.1:11434`: no external
47
+ calls, no data sent anywhere. They work offline once Ollama and the model are
48
+ installed.
49
 
50
+ `chat.py` includes a pattern-based filter for known keywords (real tragedies,
51
+ crime cases, hate speech, racial slurs) and does not keep blocked prompts in the
52
+ chat history. **This is not a guarantee**: typos, paraphrases and indirect
53
+ mentions get through. Epstein and the Twin Towers are not reliably protected,
54
+ not even here.
55
 
56
+ To play without the filter, first create the model from this folder:
57
 
58
  ```bash
59
  ollama create larp-ai -f Modelfile
60
  ollama run larp-ai
61
  ```
62
 
63
+ The `Modelfile` points to the GGUF included in `gguf/` and already contains the
64
+ system prompt and parameters. In this mode the model is raw: it guarantees
65
+ nothing about real tragedies or anything else. Do not use it for serious
66
+ information.
67
 
68
+ ## Model
69
 
70
  | | |
71
  |---|---|
72
  | Base | Qwen/Qwen3-1.7B (Apache-2.0) |
73
+ | Parameters | 1.74 B |
74
+ | Adapter | LoRA r=16, alpha=32, 17.4 M trainable parameters |
75
  | Training | SFT, QLoRA nf4, RTX 3060 12 GB |
76
+ | Data | synthetic, Italian only, CC0-1.0 |
77
+ | Weights | Apache-2.0 |
78
 
79
+ ## Limitations
80
 
81
+ Not an assistant, not aligned, not reliable. It can be vulgar and offensive on
82
+ purpose. There is no guaranteed guardrail: the raw model can invent facts about
83
+ real tragedies, and the wrapper filter can miss paraphrases. Do not use it where
84
+ accuracy matters.
85
 
86
+ ## License
87
 
88
+ Apache-2.0. Derivative of Qwen/Qwen3-1.7B (Apache-2.0); NOTICE included.
89
+ Training data was generated with Apache-2.0 models and released under CC0-1.0.