File size: 366 Bytes
2c07569 |
1 2 3 4 5 6 7 8 9 10 |
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
# Load your pretrained model
model_path = 'C:\\Users\\money\\OneDrive\\Pictures\\Blank Model\\untrained\\results'
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForQuestionAnswering.from_pretrained(model_path)
# Save the tokenizer
tokenizer.save_pretrained('tokenizer')
|