Spaces:
Sleeping
Sleeping
Commit
·
4d50f71
1
Parent(s):
d640193
typo on transformer fixed
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
import torch.nn.functional as F
|
4 |
import tiktoken
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
-
from
|
7 |
|
8 |
# Load the model from Hugging Face Hub
|
9 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
|
3 |
import torch.nn.functional as F
|
4 |
import tiktoken
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
+
from transformer import GPT, GPTConfig # Import your model class
|
7 |
|
8 |
# Load the model from Hugging Face Hub
|
9 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|