Datasets:
Commit ·
f0c36d2
1
Parent(s): 1640bd8
Option 1: strictly separate instruction and cross-lingual language conditioning column
Browse files- .gitattributes +1 -0
- .gitignore +1 -0
- README.md +102 -0
- data/train.jsonl +3 -0
- data/train.parquet +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
data/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.vscode/
|
README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- fr
|
| 4 |
+
- bci
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
pretty_name: fr_bci_4d_instruct
|
| 9 |
+
size_categories:
|
| 10 |
+
- 10K<n<100K
|
| 11 |
+
tags:
|
| 12 |
+
- instruction-tuning
|
| 13 |
+
- baoule
|
| 14 |
+
- bci
|
| 15 |
+
- french
|
| 16 |
+
- alpaca
|
| 17 |
+
- cross-lingual
|
| 18 |
+
- baba-sovereign-ai
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: default
|
| 21 |
+
data_files:
|
| 22 |
+
- split: train
|
| 23 |
+
path: data/train.parquet
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# 🇨🇮 fr_bci_4d_instruct
|
| 27 |
+
|
| 28 |
+
**fr_bci_4d_instruct** est le jeu de données d'entraînement par instructions (*Instruction Tuning / SFT*) bilingue **Français–Baoulé (bci)** du laboratoire **Tree-AI-lab**, conçu spécifiquement pour l'entraînement du modèle souverain **BABA**.
|
| 29 |
+
|
| 30 |
+
Ce dataset est une évolution structurée de Tree-AI-lab/fr_bci_4d, adoptant une **séparation stricte** entre la tâche fondamentale (instruction) et la consigne linguistique d'orientation de réponse (langue_de_reponse_attendue).
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## 📊 Composition & Structure des 4 Directions (55 020 exemples)
|
| 35 |
+
|
| 36 |
+
| Direction | Exemples | Langue Requête | Langue Réponse | Rôle de la consigne linguistique |
|
| 37 |
+
| :--- | :---: | :---: | :---: | :--- |
|
| 38 |
+
| ci_bci | **16 506** (30 %) | Baoulé | Baoulé | **Monolingue Baoulé** : Aucune consigne inter-langue (""). |
|
| 39 |
+
| r_fr | **15 406** (28 %) | Français | Français | **Monolingue Français** : Aucune consigne inter-langue (""). |
|
| 40 |
+
| r_bci | **11 554** (21 %) | Français | Baoulé | **Cross-lingual (FR ➔ BCI)** : Consigne en **français** (111 préfixes, 102 suffixes) incitant à répondre en Baoulé. |
|
| 41 |
+
| ci_fr | **11 554** (21 %) | Baoulé | Français | **Cross-lingual (BCI ➔ FR)** : Consigne en **baoulé** (105 préfixes, 102 suffixes) incitant à répondre en Français. |
|
| 42 |
+
| **Total** | **55 020** | - | - | **100 %** de couverture équilibrée. |
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## 🛠 Schéma des données (Option 1 : Séparation Stricte)
|
| 47 |
+
|
| 48 |
+
Chaque enregistrement contient les champs suivants :
|
| 49 |
+
|
| 50 |
+
`json
|
| 51 |
+
{
|
| 52 |
+
"id": "french_alpaca_1dbab5f99118e2db__fr_bci",
|
| 53 |
+
"direction": "fr_bci",
|
| 54 |
+
"source_language": "fr",
|
| 55 |
+
"target_language": "bci",
|
| 56 |
+
"instruction": "Propose un itinéraire de vacances pour une semaine à Paris...",
|
| 57 |
+
"langue_de_reponse_attendue": "Réponds en baoulé :",
|
| 58 |
+
"position_consigne": "prefixe",
|
| 59 |
+
"input": "Une famille de deux adultes et deux enfants (14 et 10 ans)",
|
| 60 |
+
"output": "Cɛn klikli: Be ko nian Tour Eiffel lɔ, be wun Montmartre klɔ’n i wun lɔ...",
|
| 61 |
+
"source_dataset": "jpacifico/French-Alpaca-dataset-Instruct-55K",
|
| 62 |
+
"source_row_index": 15365
|
| 63 |
+
}
|
| 64 |
+
`
|
| 65 |
+
|
| 66 |
+
### Description des colonnes :
|
| 67 |
+
- **instruction** : L'instruction originale **100% intacte**, sans altération ni préfixage artificiel.
|
| 68 |
+
- **langue_de_reponse_attendue** : La consigne formulée par l'utilisateur pour orienter la langue de sortie (ex: "Réponds en baoulé :" pour r_bci, ou "An tɛ su blɔfuɛ nun:" pour ci_fr). Vide "" pour les exemples monolingues.
|
| 69 |
+
- **position_consigne** : Indique si la consigne est un "prefixe", un "suffixe", ou "" (monolingue).
|
| 70 |
+
- **input** : Contexte ou données additionnelles (format Alpaca standard).
|
| 71 |
+
- **output** : La réponse générée dans la langue cible ( arget_language).
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## 💡 Utilisation recommandée pour l'entraînement (Prompt Template)
|
| 76 |
+
|
| 77 |
+
Lors du fine-tuning (SFT) ou de l'évaluation, vous pouvez reconstituer le prompt complet selon vos besoins :
|
| 78 |
+
|
| 79 |
+
`python
|
| 80 |
+
def formater_prompt(exemple):
|
| 81 |
+
instruction = exemple["instruction"]
|
| 82 |
+
consigne = exemple["langue_de_reponse_attendue"]
|
| 83 |
+
position = exemple["position_consigne"]
|
| 84 |
+
|
| 85 |
+
if position == "prefixe":
|
| 86 |
+
prompt_final = f"{consigne} {instruction}"
|
| 87 |
+
elif position == "suffixe":
|
| 88 |
+
prompt_final = f"{instruction} {consigne}"
|
| 89 |
+
else:
|
| 90 |
+
prompt_final = instruction
|
| 91 |
+
|
| 92 |
+
if exemple.get("input"):
|
| 93 |
+
prompt_final += f"\n\nContexte : {exemple['input']}"
|
| 94 |
+
return prompt_final
|
| 95 |
+
`
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
## 🏛 Licence & Crédits
|
| 100 |
+
- **Licence :** Apache 2.0
|
| 101 |
+
- **Organisation :** [Tree-AI-lab](https://huggingface.co/Tree-AI-lab)
|
| 102 |
+
- **Modèle de référence :** BABA Sovereign African AI
|
data/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:436cfdbdcc3564cc661e66bd1128f111d466add45cfefeee1539741a04cae888
|
| 3 |
+
size 43232193
|
data/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dff8ca2370457ab9574c0bfb2a468af9a41dc710e0965899d9c0a401032da3d0
|
| 3 |
+
size 15036376
|