r50k_base + 3 special tokens (50,260 total)| Metric | Score |
|---|---|
| BERTScore Precision | 0.8972 |
| BERTScore Recall | 0.8920 |
| BERTScore F1 | 0.8945 |
1from src.inference.generate import load_model, generate_from_text
2
3model, enc, device = load_model()
4questions = generate_from_text(
5 "Photosynthesis is the process by which green plants prepare food using sunlight.",
6 question_type="short_answer",
7 model=model,
8 enc=enc,
9 device=device,
10 temperature=0.0,
11)
12print(questions[0])tiktoken library with the r50k_base encoding, plus <|im_start|>, <|im_end|>, and <|pad|> tokens.