# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so
output/
cache/
TODO/

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
execution_logs/
unsloth_compiled_cache/
test_outputs/
test_output/
examples/my_sft_output/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
#   For a library or package, you might want to ignore these files since the code is
#   intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
#   However, in case of collaboration, if having platform-specific dependencies or dependencies
#   having no cross-platform support, pipenv may install dependencies that don't work, or not
#   install all needed dependencies.
#Pipfile.lock

# poetry
#   Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
#   This is especially recommended for binary packages to ensure reproducibility, and is more
#   commonly ignored for libraries.
#   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
#   Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
#   pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
#   in version control.
#   https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
#  JetBrains specific template is maintained in a separate JetBrains.gitignore that can
#  be added to the global gitignore or merged into this project gitignore.  For a PyCharm
#  project, it is recommended to include the following files:
#  .idea/
#  *.iml
#  *.ipr
#  *.iws
.idea/
*.iml
*.ipr
*.iws

# VS Code
.vscode/
*.code-workspace

# Machine Learning / LLM Training specific
# Model files
*.pkl
*.pickle
*.joblib
*.h5
*.hdf5
*.pb
*.pth
*.pt
*.ckpt
*.safetensors
*.bin
*.onnx
*.tflite
*.pb.gz
*.tflite.gz

# Tokenizer files
*.model
tokenizer.model
merges.txt
vocab.json
vocab.txt

# Dataset files
*.csv
*.tsv
*.json
*.jsonl
*.parquet
*.arrow
*.feather
datasets/
raw_data/

# Vendored mergekit ships architecture/config data as *.json - do not let the
# dataset-file rule above silently drop it (see third_party/mergekit/PATCH_NOTES.md)
!third_party/mergekit/**/*.json
processed_data/


# Checkpoints and model outputs
checkpoints/
checkpoint-*/
models/
# Vendored unsloth ships an unsloth/models/ subpackage (FastLanguageModel,
# loader, per-architecture code) - the bare "models/" rule above silently
# dropped it from every `git add` (see third_party/unsloth/PATCH_NOTES.md).
!third_party/unsloth/**/models/
!third_party/unsloth/**/models/**
outputs/
output*/
results/
notebooks/out_*/
notebooks/**/out_*/
logs/
runs/
wandb/
tensorboard_logs/
lightning_logs/
tensorboard/
*.tfevents.*

# Hugging Face cache and model storage
.cache/
huggingface/
transformers_cache/
.huggingface/
HF_HOME/

# Jupyter notebook outputs
*.ipynb
!/notebooks/*.ipynb
!/notebooks/usecases/*.ipynb
!/notebooks/unsloth/*.ipynb

# Unsloth specific
unsloth_compiled_cache/
*.unsloth_cache

# Large files that shouldn't be in git
*.zip
*.tar.gz
*.tar.bz2
*.rar
*.7z
*.gz

# OS specific
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
desktop.ini

# Temporary files
*.tmp
*.temp
*.swp
*.swo
*~
*.bak
*.backup

# Configuration files with secrets
config.yaml
secrets.yaml
.env.local
.env.production
.secrets
*.secret
*.credentials

# API keys and tokens
*.key
*.token
api_keys.txt
tokens.txt
credentials.json

# Large model files (add specific patterns as needed)
# Uncomment and modify based on your specific needs:
# models/*.bin
# models/*.safetensors
# models/*.pth
# models/*.ckpt

# Experiment tracking
mlruns/
.mlflow/
neptune/
comet_ml/
optuna/

# Pre-commit
.pre-commit-config.yaml

# Profiling
*.prof
*.lprof
*.pstats

# Memory dumps
*.dmp
*.core

# Local development
local/
scratch/
test_outputs/
debug/

# Example-specific outputs
examples/bolt_training/output/
examples/bolt_training/output_direct/
examples/bolt_training/wandb/
examples/grpo_gsm8k_trl/output/
examples/grpo_gsm8k_trl/output_direct/
examples/grpo_gsm8k_trl/wandb/
examples/grpo_gsm8k_unsloth/output/
examples/grpo_gsm8k_unsloth/output_direct/
examples/grpo_gsm8k_unsloth/wandb/
examples/sft_customer_support_unsloth/output/
examples/sft_customer_support_unsloth/output_direct/
examples/sft_customer_support_unsloth/wandb/
examples/sft_customer_support_unsloth/cache/
examples/sft_customer_support_unsloth/tensorboard/
examples/sft_financial_summarization_unsloth/output/
examples/sft_financial_summarization_unsloth/output_direct/
examples/sft_financial_summarization_unsloth/wandb/
examples/sft_financial_summarization_unsloth/cache/
examples/sft_financial_summarization_unsloth/tensorboard/
examples/sft_healthcare_diagnosis_unsloth/output/
examples/sft_healthcare_diagnosis_unsloth/output_direct/
examples/sft_healthcare_diagnosis_unsloth/wandb/
examples/sft_healthcare_diagnosis_unsloth/cache/
examples/sft_healthcare_diagnosis_unsloth/tensorboard/
examples/sft_customer_support_trl/output/
examples/sft_customer_support_trl/output_direct/
examples/sft_customer_support_trl/wandb/
examples/sft_customer_support_trl/cache/
examples/sft_customer_support_trl/tensorboard/
examples/sft_financial_summarization_trl/output/
examples/sft_financial_summarization_trl/output_direct/
examples/sft_financial_summarization_trl/wandb/
examples/sft_financial_summarization_trl/cache/
examples/sft_financial_summarization_trl/tensorboard/
examples/sft_healthcare_diagnosis_trl/output/
examples/sft_healthcare_diagnosis_trl/output_direct/
examples/sft_healthcare_diagnosis_trl/wandb/
examples/sft_healthcare_diagnosis_trl/cache/
examples/sft_healthcare_diagnosis_trl/tensorboard/