Spaces:
Runtime error
Runtime error
Download config.py from GunaKoppula/Session21: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/GunaKoppula/Session21/resolve/main/config.py
- Command line
-
hf download hf://spaces/GunaKoppula/Session21/config.py
-
curl -L -o config.py https://huggingface.co/spaces/GunaKoppula/Session21/resolve/main/config.py
380 Bytes
| import torch | |
| # hyperparameters | |
| batch_size = 64 # how many independent sequences will we process in parallel? | |
| block_size = 256 # what is the maximum context length for predictions? | |
| max_iters = 5000 | |
| eval_interval = 500 | |
| learning_rate = 3e-4 | |
| device = 'cuda' if torch.cuda.is_available() else 'cpu' | |
| eval_iters = 200 | |
| n_embd = 384 | |
| n_head = 6 | |
| n_layer = 6 | |
| dropout = 0.2 | |
| # ------------ | |