Views
No views yet
⚠️ Preliminary results — 1 seed, variance not controlled. Every number below is a single training run evaluated once (50 prompts × 200 tokens, fixed seed). Directions are consistent, magnitudes are not validated. Treat as a lab notebook, not a benchmark.
n_embd 256 / n_layer 8 / n_head 4 · context 768.bpe_tokenizer_32k.json).| Model | Val PPL ↓ | Coherence auto ↑ | Coherence fixed ↑ | Invented names auto ↓ | Prompt overlap auto ↑ |
|---|---|---|---|---|---|
| Baseline (vanilla) | 31.2 | 35.2 | 40.7 | 0.137 | 0.139 |
| Cadence (looped R=4) | 28.9 | 39.3 | 32.5 | 0.121 | 0.147 |
| Focal (absolute halt) | 29.1 | 44.1 | 29.1 | 0.103 | 0.176 |
| Nomade (percentile halt) | 31.0 | 36.3 | 41.8 | 0.094 | 0.126 |
model/, utils/), so a snapshot download is self-contained. Requires torch, huggingface_hub, tokenizers.1import sys, torch
2from huggingface_hub import snapshot_download
3
4repo = snapshot_download("RDTvlokip/Cadence-15M-fr") # code + weights + tokenizer
5sys.path.insert(0, repo)
6from model.gpt2 import GPT2
7from utils.tokenizer import GPT2Tokenizer
8
9model = GPT2.from_pretrained(f"{repo}/best_model.pt", device="cuda"); model.eval()
10tok = GPT2Tokenizer(f"{repo}/bpe_tokenizer_32k.json")
11
12ids = tok.encode("La capitale de la France est", add_special_tokens=True)
13if ids and ids[-1] == tok.eos_token_id:
14 ids = ids[:-1] # drop trailing <eos> (keeps it on-topic)
15out = model.generate(
16 torch.tensor([ids], device="cuda"),
17 max_length=80, temperature=0.8, top_k=40, top_p=0.9,
18 repetition_penalty=1.3, eos_token_id=tok.eos_token_id,
19)
20print(tok.decode(out[0].tolist(), skip_special_tokens=True))