Skip to content
Snippets Groups Projects
Commit 70f73e24 authored by Julien Rabault's avatar Julien Rabault
Browse files

change ignore

parent 501425a2
Branches
No related tags found
2 merge requests!6Linker with transformer,!5Linker with transformer
......@@ -7,3 +7,4 @@ Linker/__pycache__
Configuration/__pycache__
__pycache__
TensorBoard
train.py
import torch
from Configuration import Configuration
from Linker import *
from utils import read_csv_pgbar
torch.cuda.empty_cache()
batch_size = int(Configuration.modelTrainingConfig['batch_size'])
nb_sentences = batch_size * 2
epochs = int(Configuration.modelTrainingConfig['epoch'])
file_path_axiom_links = 'Datasets/gold_dataset_links.csv'
df_axiom_links = read_csv_pgbar(file_path_axiom_links, nb_sentences)
print("Linker")
linker = Linker("models/flaubert_super_98%_V2_50e.pt")
print("\nLinker Training\n\n")
linker.train_linker(df_axiom_links, validation_rate=0.1, epochs=epochs, batch_size=batch_size, checkpoint=False, tensorboard=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment