File size: 2,203 Bytes
37d2939
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ba77ad
 
37d2939
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- en
- fr
library_name: transformers
pipeline_tag: translation
license: cc-by-nc-4.0
base_model: facebook/nllb-200-distilled-600M
tags:
- translation
- gaming
- renpy
- visual-novel
- french
datasets:
- custom
metrics:
- bleu
- sacrebleu
widget:
- text: "Hello! Welcome to our game."
  example_title: "Gaming Interface"
- text: "I love you more than anything."
  example_title: "Romance Dialogue"
- text: "What do you choose?"
  example_title: "Choice Menu"
---

# ๐ŸŽฎ NLLB-RenPy: Specialized French Gaming Translator

## ๐ŸŒŸ Model Description

This model is a fine-tuned version of **facebook/nllb-200-distilled-600M** specifically trained for **English-to-French translation** in gaming contexts, particularly **RenPy visual novels**.

### ๐ŸŽฏ Specialized For:
- ๐ŸŽฎ Gaming interfaces and menus
- ๐Ÿ’ฌ Character dialogues and narratives  
- ๐Ÿ’• Romance and emotional expressions
- ๐Ÿ”„ Interactive choices and options
- ๐Ÿ“ฑ UI elements and notifications

### ๐Ÿ† Performance Highlights:
- **Superior quality** vs Google Translate/DeepL for gaming
- **Context-aware** translations maintaining gaming tone
- **Optimized** for visual novel terminology
- **Consistent** character voice preservation

## ๐Ÿš€ Quick Start

```python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

# Load model
model = AutoModelForSeq2SeqLM.from_pretrained("virusf/nllb-renpy")
tokenizer = AutoTokenizer.from_pretrained("virusf/nllb-renpy")

# Translate
text = "Hello! Welcome to our game."
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, forced_bos_token_id=tokenizer.convert_tokens_to_ids("fra_Latn"))
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)  # "Bonjour! Bienvenue dans notre jeu."
```

๐Ÿ“Š Training Details

    Base Model: facebook/nllb-200-distilled-600M
    Training Data: 15,000+ specialized gaming translations
    Languages: English โ†’ French
    Epochs: 2.0
    Final Loss: 0.4441

๐ŸŽฏ Use Cases

Perfect for translating:

    โœ… RenPy/Ren'Py visual novels
    โœ… Gaming interfaces and menus
    โœ… Character dialogues and stories
    โœ… Interactive fiction content
    โœ… Dating simulation games