tonyassi commited on
Commit
14eb54e
•
1 Parent(s): 896a92c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -1
README.md CHANGED
@@ -66,7 +66,7 @@ predict(repo_id='-',
66
  The first time this function is called it'll download the safetensor model. Subsequent function calls will run faster.
67
 
68
  ### Train Model
69
- - **dataset_id** 🤗 dataset id (see [Dataset](https://github.com/TonyAssi/ImageRegression?tab=readme-ov-file#dataset))
70
  - **value_column_name** column name of prediction values in dataset
71
  - **test_split** test split of the train/test split
72
  - **output_dir** the directory where the checkpoints will be saved
@@ -83,3 +83,13 @@ train_model(dataset_id='-',
83
  ```
84
  The trainer will save the checkpoints in the output_dir location. The model.safetensors are the trained weights you'll use for inference (predicton).
85
 
 
 
 
 
 
 
 
 
 
 
 
66
  The first time this function is called it'll download the safetensor model. Subsequent function calls will run faster.
67
 
68
  ### Train Model
69
+ - **dataset_id** 🤗 dataset id
70
  - **value_column_name** column name of prediction values in dataset
71
  - **test_split** test split of the train/test split
72
  - **output_dir** the directory where the checkpoints will be saved
 
83
  ```
84
  The trainer will save the checkpoints in the output_dir location. The model.safetensors are the trained weights you'll use for inference (predicton).
85
 
86
+ ### Upload Model
87
+ This function will upload your model to the 🤗 Hub.
88
+ - **model_id** the name of the model id
89
+ - **token** go [here](https://huggingface.co/settings/tokens) to create a new 🤗 token
90
+ - **checkpoint_dir** checkpoint folder that will be uploaded
91
+ ```python
92
+ upload_model(model_id='-',
93
+ token='YOUR_HF_TOKEN',
94
+ checkpoint_dir='./results/checkpoint-940')
95
+ ```