| # Rax 3.5 Chat - Deployment Guide | |
| ## Uploading to Hugging Face | |
| ### Prerequisites | |
| 1. Install required packages: | |
| ```bash | |
| pip install huggingface_hub transformers | |
| ``` | |
| 2. Login to Hugging Face: | |
| ```bash | |
| huggingface-cli login | |
| ``` | |
| ### Upload Steps | |
| 1. **Initialize Git LFS** (if not already done): | |
| ```bash | |
| cd /home/ogega/Projects/models/rax-3.5-chat | |
| git lfs install | |
| ``` | |
| 2. **Add all files**: | |
| ```bash | |
| git add . | |
| git commit -m "Initial commit: Rax 3.5 Chat model" | |
| ``` | |
| 3. **Create repository on Hugging Face**: | |
| - Go to https://huggingface.co/new | |
| - Create a new model repository named "rax-3.5-chat" under raxcore-dev | |
| - Choose "Public" or "Private" as needed | |
| 4. **Push to Hugging Face**: | |
| ```bash | |
| git remote add origin https://huggingface.co/raxcore-dev/rax-3.5-chat | |
| git branch -M main | |
| git push -u origin main | |
| ``` | |
| ### Alternative: Using huggingface_hub | |
| ```python | |
| from huggingface_hub import HfApi | |
| api = HfApi() | |
| api.upload_folder( | |
| folder_path="/home/ogega/Projects/models/rax-3.5-chat", | |
| repo_id="raxcore-dev/rax-3.5-chat", | |
| repo_type="model" | |
| ) | |
| ``` | |
| ## Model Testing | |
| Run the included test script: | |
| ```bash | |
| cd /home/ogega/Projects/models/rax-3.5-chat | |
| python test_rax.py | |
| ``` | |
| ## Files Included | |
| - `config.json` - Model configuration | |
| - `tokenizer_config.json` - Tokenizer configuration | |
| - `model.safetensors` - Model weights | |
| - `tokenizer.json` - Tokenizer data | |
| - `tokenizer.model` - SentencePiece model | |
| - `generation_config.json` - Generation parameters | |
| - `README.md` - Comprehensive documentation | |
| - `model_card.md` - Hugging Face model card | |
| - `test_rax.py` - Test script | |
| - `.gitattributes` - Git LFS configuration | |
| ## Ready for Release! | |
| Your Rax 3.5 Chat model is now fully rebranded and ready for upload to Hugging Face. | |