File size: 914 Bytes
9b08c94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import kagglehub

kagglehub.login()

# Replace with path to directory containing model files.
LOCAL_MODEL_DIR = '/export/home/acs/stud/t/tudor.farcasanu/SSL_Assignment/single_model/model/deberta_v3_large_w10_ado1_wd0_bs2_lr1e5_5epo_simplified_labels_fold0_best_hf'

MODEL_SLUG = 'Single_model_only_comp_data' # Replace with model slug.

# Learn more about naming model variations at
# https://www.kaggle.com/docs/models#name-model.
VARIATION_SLUG = 'training_length_4096_8labels_moredata' # Replace with variation slug.

kagglehub.model_upload(
  handle = f"andreifrcanu/{MODEL_SLUG}/transformers/{VARIATION_SLUG}",
  local_model_dir = LOCAL_MODEL_DIR,
  version_notes = 'training_length_4096_8labels_moredata')
# kagglehub.model_upload(
#   handle = f"andreifrcanu/{MODEL_SLUG}/pyTorch/{VARIATION_SLUG}",
#   local_model_dir = LOCAL_MODEL_DIR,
#   version_notes = 'training_length_4096_origlabels_actualmoredata')