Download code/tz/__init__.py from wajih-rathore/transformer-zero: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/wajih-rathore/transformer-zero/resolve/main/code/tz/__init__.py
- Command line
-
hf download hf://wajih-rathore/transformer-zero/code/tz/__init__.py
-
curl -L -o __init__.py https://huggingface.co/wajih-rathore/transformer-zero/resolve/main/code/tz/__init__.py
227 Bytes
| import torch | |
| # bf16 (what Qwen3 was trained in) on Ampere+ GPUs (A100, L4); fp16 on older ones like the T4. | |
| DTYPE = torch.bfloat16 if torch.cuda.is_available() and torch.cuda.get_device_capability()[0] >= 8 else torch.float16 | |