Wilderss commited on
Commit
134aea8
1 Parent(s): 9b38941

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -1
README.md CHANGED
@@ -17,4 +17,18 @@ base_model:
17
  new_version: meta-llama/Llama-3.1-8B-Instruct
18
  pipeline_tag: question-answering
19
  library_name: adapter-transformers
20
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  new_version: meta-llama/Llama-3.1-8B-Instruct
18
  pipeline_tag: question-answering
19
  library_name: adapter-transformers
20
+
21
+ from transformers import AutoModelForQuestionAnswering, Trainer, TrainingArguments
22
+ model = AutoModelForQuestionAnswering.from_pretrained("your-model-name")
23
+
24
+ pip install transformers datasets
25
+
26
+ training_args = TrainingArguments(
27
+ output_dir='./results',
28
+ num_train_epochs=3,
29
+ per_device_train_batch_size=16,
30
+ evaluation_strategy="epoch"
31
+ )
32
+
33
+ ---eval_results = trainer.evaluate()
34
+ print(eval_results)