Update README.md
#1
by
Wilderss
- opened
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)
|