rax-3.5-chat / DEPLOYMENT.md
raxder-ai's picture
Upload folder using huggingface_hub
fc7e729 verified

Rax 3.5 Chat - Deployment Guide

Uploading to Hugging Face

Prerequisites

  1. Install required packages:
pip install huggingface_hub transformers
  1. Login to Hugging Face:
huggingface-cli login

Upload Steps

  1. Initialize Git LFS (if not already done):
cd /home/ogega/Projects/models/rax-3.5-chat
git lfs install
  1. Add all files:
git add .
git commit -m "Initial commit: Rax 3.5 Chat model"
  1. 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
  2. Push to Hugging Face:

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

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:

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.