tasal9/ZamAI-Pashto-Dataset-Cleaned
Updated β’ 27
How to use tasal9/ZamAI-Facebook-XLM-Pashto with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="tasal9/ZamAI-Facebook-XLM-Pashto") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("tasal9/ZamAI-Facebook-XLM-Pashto", dtype="auto")Overview
This repository contains helper scripts to download and persist the base model facebook/xlm-roberta-base locally (into ./base_model/) and to run a small fill-mask inference example. Large model files should be handled using Git LFS; .gitattributes at the repo root already includes common model file patterns.
Quick start
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
./base_model/:python download_base_model.py
./base_model/ if present):python inference.py
Files
download_base_model.py β downloads the Hugging Face model and saves to ./base_model/.inference.py β small script to run a fill-mask example.requirements.txt β Python dependencies..gitignore β common ignores../base_model/
license: mit datasets:
Base model
FacebookAI/xlm-roberta-base