The dataset viewer is not available for this dataset.
Error code: ConfigNamesError
Exception: FileNotFoundError
Message: Couldn't find any data file at /src/services/worker/nassimjp/Bilingual-SFT-Dataset. Couldn't find 'nassimjp/Bilingual-SFT-Dataset' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/nassimjp/Bilingual-SFT-Dataset@71f24e94cb8d600043d11929a1d320f3858c3079/data/train-00000-of-00001-a1b2c3d4e5f6.parquet' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.lance', '.tsfile', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 67, in compute_config_names_response
config_names = get_dataset_config_names(
path=dataset,
token=hf_token,
)
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
dataset_module = dataset_module_factory(
path,
...<4 lines>...
**download_kwargs,
)
File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1211, in dataset_module_factory
raise FileNotFoundError(
...<2 lines>...
) from None
FileNotFoundError: Couldn't find any data file at /src/services/worker/nassimjp/Bilingual-SFT-Dataset. Couldn't find 'nassimjp/Bilingual-SFT-Dataset' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/nassimjp/Bilingual-SFT-Dataset@71f24e94cb8d600043d11929a1d320f3858c3079/data/train-00000-of-00001-a1b2c3d4e5f6.parquet' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.lance', '.tsfile', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Bilingual-SFT-Dataset
This dataset is a general-purpose bilingual Supervised Fine-Tuning (SFT) dataset designed for training Large Language Models (LLMs) to handle both English and Pashto languages effectively. It is structured to create robust multilingual models by maintaining English proficiency while building Pashto capabilities.
Attributes:
- Language(s): English, Pashto
- License: apache-2.0
- Size: 200,000 entries
- Format: JSONL
- Source: iPashto.ai
Dataset Summary
The dataset contains 200,000 instruction-response pairs formatted for general chat templates (Alpaca format). It is designed to create a robust bilingual model by mixing different types of training examples:
| Category | Count | Percentage | Description |
|---|---|---|---|
| 🇺🇸 English Only | 50,000 | 25% | Maintains English comprehension |
| 🇦🇫 Pashto Only | 50,000 | 25% | Builds Pashto capabilities |
| 🔄 English → Pashto | 40,000 | 20% | Translation ability from English to Pashto |
| 🔄 Pashto → English | 30,000 | 15% | Reverse translation ability |
| 🌐 Bilingual | 30,000 | 15% | Mixed-language prompts for cross-lingual understanding |
Format
Each entry follows the Alpaca format, which is compatible with most fine-tuning frameworks:
{
"instruction": "What is AI?",
"input": "",
"output": "AI is artificial intelligence..."
}
Example Entry
{
"id": "001078",
"instruction": "English: What is the structure of an amino acid?\nپښتو: د امینو اسید جوړښت څه شی دی؟",
"input": "",
"output": "English: An amino acid consists of a central carbon atom...\nپښتو: یو امینو اسید د مرکزي کاربن اتوم...",
"category": "bilingual",
"source": "ipashto_ai_mixed"
}
Fields
| Field | Type | Description |
|---|---|---|
id |
string | Unique identifier matching original source files |
instruction |
string | The task instruction or question |
input |
string | Optional input context (usually empty) |
output |
string | The desired response or answer |
category |
string | One of: en_only, ps_only, en_to_ps, ps_to_en, bilingual |
source |
string | Dataset source (ipashto_ai_mixed) |
ID Alignment
All entries maintain perfect ID alignment with the original source files. Each id in the dataset corresponds to a matching entry in the original English and Pashto source datasets, enabling:
- ✅ Full traceability for debugging
- ✅ Quality assurance verification
- ✅ Regenerating datasets deterministically
- ✅ Evaluation set construction
Usage
Loading the Dataset
from datasets import load_dataset
# Load the full dataset
dataset = load_dataset("nassimjp/Bilingual-SFT-Dataset")
# Or load as training dataset
train_dataset = load_dataset("nassimjp/Bilingual-SFT-Dataset", split="train")
print(f"Loaded {len(train_dataset)} entries")
Training with LLaMA-Factory
Create a configuration file:
# llama_factory_config.yaml
model_name_or_path: meta-llama/Llama-2-7b-hf
dataset: bilingual_sft
template: alpaca
finetuning_type: lora
lora_rank: 64
lora_alpha: 128
lora_target: q_proj,v_proj
output_dir: outputs/bilingual_model
per_device_train_batch_size: 4
gradient_accumulation_steps: 8
learning_rate: 2e-4
num_train_epochs: 3
max_grad_norm: 1.0
lr_scheduler_type: cosine
warmup_ratio: 0.03
logging_steps: 10
save_steps: 500
evaluation_strategy: steps
eval_steps: 500
Then run:
llamafactory-cli train llama_factory_config.yaml
Training with Unsloth
from unsloth import FastLanguageModel
import torch
from trl import SFTTrainer
from transformers import TrainingArguments
from datasets import load_dataset
# Load model (choose your base model)
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="unsloth/llama-2-7b-bnb-4bit",
max_seq_length=2048,
load_in_4bit=True,
dtype=torch.float16,
)
# Add LoRA adapters
model = FastLanguageModel.get_peft_model(
model,
r=64,
target_modules=["q_proj", "k_proj", "v_proj", "o_proj"],
lora_alpha=128,
lora_dropout=0.05,
)
# Load dataset
dataset = load_dataset("nassimjp/Bilingual-SFT-Dataset", split="train")
# Define formatting function for Alpaca
def format_alpaca(example):
text = f"### Instruction:\n{example['instruction']}\n\n### Response:\n{example['output']}"
return {"text": text}
dataset = dataset.map(format_alpaca)
# Train
trainer = SFTTrainer(
model=model,
tokenizer=tokenizer,
train_dataset=dataset,
dataset_text_field="text",
max_seq_length=2048,
args=TrainingArguments(
per_device_train_batch_size=4,
gradient_accumulation_steps=4,
learning_rate=2e-4,
num_train_epochs=3,
fp16=True,
output_dir="./bilingual_output",
),
)
trainer.train()
Training with Axolotl
Create a configuration file:
# axolotl_config.yaml
base_model: meta-llama/Llama-2-7b-hf
model_type: LlamaForCausalLM
tokenizer_type: LlamaTokenizer
load_in_8bit: false
load_in_4bit: true
strict: false
datasets:
- path: nassimjp/Bilingual-SFT-Dataset
type: alpaca
conversation: instruction
dataset_prepared_path: last_run_prepared
val_set_size: 0.05
output_dir: ./lora-out
sequence_len: 2048
sample_packing: true
lora_r: 64
lora_alpha: 128
lora_dropout: 0.05
lora_target_modules:
- q_proj
- v_proj
train_on_inputs: false
group_by_length: false
bf16: auto
fp16: false
gradient_accumulation_steps: 4
micro_batch_size: 4
num_epochs: 3
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
learning_rate: 2e-4
wandb_project: bilingual-sft
wandb_watch: gradients
Then run:
accelerate launch -m axolotl.cli.train axolotl_config.yaml
Intended Uses
This dataset is designed for:
- 🎯 Bilingual Fine-Tuning: Training models to understand and respond in both English and Pashto
- 🔄 Machine Translation: Improving translation capabilities between English and Pashto
- 🌐 Cross-Lingual Transfer: Building models that can handle prompts in both languages
- 📝 Instruction Following: Models that can follow instructions in either language
- 🎓 Educational AI: AI systems for Pashto-speaking users
- 💬 Conversational AI: Chatbots and assistants that can converse in both languages
- 🔬 Research: Multilingual and cross-lingual learning research
Limitations and Biases
- The dataset contains technical and academic content, which may reflect Western-centric perspectives
- Pashto translations may have regional variations (e.g., Afghan vs. Pakistani Pashto)
- Cultural contexts may not be fully represented
- The dataset is derived from existing English datasets and may inherit their biases
- Some translations may have minor stylistic variations
- The dataset focuses on written Pashto and may not capture all dialectal variations
Data Source
The dataset was created from the iPashto.ai project, which curates bilingual English-Pashto data for AI training. The source data includes:
- 37,635 English records from
messages_chunk_001_indexed.jsonl - Corresponding Pashto translations from
pashto_messages_chunk_001.jsonl
License
This dataset is licensed under Apache License 2.0.
Citation
If you use this dataset, please cite:
@dataset{zadran_2025_bilingual_sft,
author = {Nasibullah Nassim},
title = {Bilingual-SFT-Dataset},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/nassimjp/Bilingual-SFT-Dataset}
}
Contact
For questions or suggestions, please open an issue on the dataset repository or contact the maintainer.
Acknowledgments
- iPashto.ai project for the original data
- Hugging Face for dataset hosting
- LLaMA-Factory, Unsloth, and Axolotl teams for training tools
Additional Information
Dataset Statistics
- Total Entries: 200,000
- Languages: English, Pashto
- Format: JSONL (Alpaca)
- Average Instruction Length: ~50 words
- Average Output Length: ~100 words
- Max Sequence Length: 2048 tokens
Quality Assurance
- ✅ All entries are ID-aligned with source files
- ✅ 100% conversion rate (0 skipped entries)
- ✅ Contains 5 diverse categories
- ✅ Proper Alpaca format
- ✅ No empty or malformed entries
Comparison with Ministral Version
| Feature | Bilingual-SFT-Dataset | Ministral-Bilingual-SFT-Dataset |
|---|---|---|
| Format | Alpaca (instruction/input/output) | Ministral chat template |
| Compatibility | All LLM fine-tuning frameworks | Ministral-3b-instruct only |
| Flexibility | High (works with any model) | Specific to Ministral |
Dataset created with ❤️ for the Pashto AI community
Stars ⭐ Star this dataset if you find it useful!
- Downloads last month
- -