Update gpt3-pretrained
Browse files- gpt3-pretrained +1 -0
gpt3-pretrained
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 2 |
from transformers import LineByLineTextDataset, DataCollatorForLanguageModeling, Trainer, TrainingArguments
|
| 3 |
import openai
|
|
|
|
| 4 |
|
| 5 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
| 6 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
|
|
|
| 1 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 2 |
from transformers import LineByLineTextDataset, DataCollatorForLanguageModeling, Trainer, TrainingArguments
|
| 3 |
import openai
|
| 4 |
+
import os
|
| 5 |
|
| 6 |
API_URL = "https://api.openai.com/v1/chat/completions"
|
| 7 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|