mirror of
https://github.com/zenlm/gym.git
synced 2026-11-04 17:11:44 +00:00
## Major Changes - **Package Rename**: llamafactory → zoo-gym (PyPI) / gym (internal) - **Organization**: Rebranded to Zoo Labs Foundation Inc (501c3 non-profit) - **Complete Module Migration**: All src/llamafactory/ → src/gym/ - **Updated Metadata**: setup.py, pyproject.toml, README.md ## New Features - **Qwen3 Fine-tuning**: Full support with configs/qwen3_finetune.yaml - **Zen Nano Integration**: QLoRA config for 4B edge models - **Enhanced Documentation**: README-HF.md, QUICKSTART.md, LLM.md - **HuggingFace Integration**: .huggingface deployment config - **Training Scripts**: train_qwen3.py, train_qwen3_omni.py ## Technical Improvements - **Import Path Updates**: All internal references updated - **CLI Rename**: gym-cli command (backward compatible) - **Gradio WebUI**: Enhanced interface for training - **Educational Focus**: Democratizing AI education and research ## Testing - ✅ Package imports successfully - ✅ CLI functionality verified - ✅ Core dependencies resolved - 📋 CI tests pending ## Attribution Maintains original Apache 2.0 license with updated copyright to Zoo Labs Foundation Inc. All original LlamaFactory contributors acknowledged in commit history.
38 lines
879 B
Python
38 lines
879 B
Python
#!/usr/bin/env python
|
|
# Copyright 2025 Zoo Labs Foundation Inc.
|
|
# Licensed under the Apache License, Version 2.0
|
|
"""
|
|
Gym - AI Model Training Platform
|
|
By Zoo Labs Foundation Inc - A 501(c)(3) Non-Profit
|
|
|
|
Hugging Face Spaces App
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Add src to path for imports
|
|
sys.path.insert(0, str(Path(__file__).parent / "src"))
|
|
|
|
# Import the web UI launcher
|
|
from gym.webui.interface import create_ui
|
|
|
|
def main():
|
|
"""Launch the Gym web interface."""
|
|
# Set environment variables for Hugging Face Spaces
|
|
os.environ["GRADIO_SERVER_NAME"] = "0.0.0.0"
|
|
os.environ["GRADIO_SERVER_PORT"] = "7860"
|
|
|
|
# Create and launch the UI
|
|
demo = create_ui()
|
|
demo.queue()
|
|
demo.launch(
|
|
server_name="0.0.0.0",
|
|
server_port=7860,
|
|
share=False,
|
|
inbrowser=False
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
main() |