trainingargs = TrainingArguments( #numtrainepochs = 4, # 1, 2, 4…
Jump to turn (11)
- 1trainingargs = TrainingArguments( #numtrainepochs = 4, # 1, 2, 4 #perdevicetrain
- 2difference between loggingsteps, savesteps, and eval-steps?
- 3eli5 what happens if i set loggingsteps = 25, and evalsteps=75.
- 4ok, i know that with evalsteps=75, the model will be tested on the evaluation da
- 5so loggingsteps will use metrics for the training data and evalsteps will use me
- 6in TrainingArguments there is fp16=True if we want to use float16 instead of flo
- 7I want to fine-tune a VQA model with 384M parameters (loaded with fp16) using an
- 8imgpath = basepath + '\\' + cls + '\\' + img image = Image.open(imgpath) width,
- 9so in cv2, image.shape gives height, width, channels, but for resize, we should
- 10torch resize image
- 11which reads images faster? opencv's cv2, torch, or pil?
- User
training_args = TrainingArguments( #num_train_epochs = 4, # 1, 2, 4 #per_device_train_batch_size = 2, #per_device_eval_batch_size = 8, #gradient_accumulation_steps = 8,
code#warmup_steps = 50, #learning_rate = 1e-4, #weight_decay = 0.01, #logging_steps = 25, output_dir = '/blip-ft', save_strategy = 'steps', #save_steps = 25, save_total_limit = 1, ##load_best_model_at_end = True, ### ##evaluation_strategy = "steps", ### ##eval_steps = 25, ### #fp16 = True, #remove_unused_columns = False, report_to = "none", # mlflow, none)
Here, if i use save_total_limit = 1 and load_best_model_at_end = True, does that mean the model will not delete the older checkpoint, but the worse one?
- Assistant