Mistral_Test / limitation
eesfeg's picture
Add fine-tuned Mistral model
3ac4614
raw
history blame contribute delete
439 Bytes
### **5. Upload to Hugging Face Hub**
#### **Method 1: Using Python API**
```python
from huggingface_hub import HfApi, create_repo, upload_folder
repo_id = "your-username/mistral-finetuned-model"
# Upload files
api = HfApi()
api.upload_folder(
folder_path="./hf-upload",
repo_id=repo_id,
repo_type="model"
)
# Create model card
from huggingface_hub import ModelCard
card = ModelCard.load(repo_id)
card.push_to_hub(repo_id)