File size: 1,737 Bytes
fc7e729 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | # 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.
|