Aktualizovat peft/model_peft.py
This commit is contained in:
parent
599ee2f5dc
commit
2bce122ddf
@ -29,7 +29,7 @@ val_dataset = create_stratified_split(label_0, label_1, n_samples=10, seed=43)
|
|||||||
test_dataset = create_stratified_split(label_0, label_1, n_samples=50, seed=44)
|
test_dataset = create_stratified_split(label_0, label_1, n_samples=50, seed=44)
|
||||||
|
|
||||||
# Load tokenizer and base model
|
# Load tokenizer and base model
|
||||||
model_name = "ApoTro/slovak-t5-small"
|
model_name = "TUKE-KEMT/slovak-t5-base"
|
||||||
tokenizer = AutoTokenizer.from_pretrained(model_name, force_download=True)
|
tokenizer = AutoTokenizer.from_pretrained(model_name, force_download=True)
|
||||||
model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels=2)
|
model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels=2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user