Views
No views yet
1# Use a pipeline as a high-level helper
2>>> from transformers import pipeline
3>>> pipe = pipeline("text-generation", model="lgaalves/gpt2_camel_physics-platypus")
4>>> question = "What is a large language model?"
5>>> answer = pipe(question)
6>>> print(answer[0]['generated_text'])1# Load model directly
2from transformers import AutoTokenizer, AutoModelForCausalLM
3
4tokenizer = AutoTokenizer.from_pretrained("lgaalves/gpt2_camel_physics-platypus")
5model = AutoModelForCausalLM.from_pretrained("lgaalves/gpt2_camel_physics-platypus")lgaalves/gpt2_open-platypus trained using STEM and logic based dataset garage-bAInd/Open-Platypus and
the GPT4 generated dataset lgaalves/camel-physics.lgaalves/gpt2_camel_physics-platypus was instruction fine-tuned using LoRA on 1 v100 GPU on Google Colab. It took about 17 minutes to train it.| Metric | Value |
|---|---|
| Avg. | 25.04 |
| ARC (25-shot) | 23.04 |
| HellaSwag (10-shot) | 31.32 |
| MMLU (5-shot) | 26.91 |
| TruthfulQA (0-shot) | 39.56 |
| Winogrande (5-shot) | 49.64 |
| GSM8K (5-shot) | 0.0 |
| DROP (3-shot) | 4.79 |