# ============================================================
# requirements.txt - 项目依赖清单
# ============================================================
# 安装命令：pip install -r requirements.txt
#
# 建议使用 Python 3.10+ 及独立虚拟环境：
#   python -m venv .venv
#   source .venv/bin/activate   # Linux/macOS
#   .venv\Scripts\activate      # Windows
#   pip install -r requirements.txt
# ============================================================

# ---- LLM API 客户端 ----
openai>=1.30.0
anthropic>=0.28.0
dashscope>=1.19.0          # 阿里云 DashScope（Qwen）
requests>=2.31.0           # 百度 ERNIE HTTP 调用

# ---- 数据处理 ----
numpy>=1.26.0
pandas>=2.2.0
scipy>=1.13.0              # KL 散度计算（scipy.special.rel_entr）

# ---- 机器学习 / 深度学习 ----
torch>=2.2.0
transformers>=4.41.0
datasets>=2.19.0           # HuggingFace datasets
peft>=0.11.0               # LoRA / QLoRA（Parameter-Efficient Fine-Tuning）
trl>=0.9.0                 # SFT Trainer
bitsandbytes>=0.43.0       # QLoRA 4-bit 量化（Linux/Windows CUDA）
accelerate>=0.30.0         # 多 GPU / 混合精度训练

# ---- 可视化 ----
matplotlib>=3.9.0
seaborn>=0.13.0

# ---- 工具 ----
tqdm>=4.66.0               # 进度条
python-dotenv>=1.0.0       # 从 .env 文件加载环境变量（可选）
scikit-learn>=1.5.0        # 辅助评估指标

# ---- 网络爬虫（数据采集）----
playwright>=1.44.0         # 动态页面爬虫（裁判文书网）
beautifulsoup4>=4.12.0
lxml>=5.2.0

# ---- 开发辅助（可选）----
jupyter>=1.0.0
ipykernel>=6.29.0
