Open hhhaiai opened 6 months ago
try upgrade torch version to 2.2.2 or latest
try upgrade torch version to 2.2.2 or latest
ok
same with pytorch 2.2.2
python train_gpt2.py Running pytorch 2.2.2 using device: mps wrote gpt2_tokenizer.bin loading weights from pretrained gpt: gpt2 config.json: 100%|██████████████████████████████████████████████████████████████████████████████| 665/665 [00:00<00:00, 130kB/s] model.safetensors: 100%|█████████████████████████████████████████████████████████████████████| 548M/548M [00:59<00:00, 9.17MB/s] generation_config.json: 100%|██████████████████████████████████████████████████████████████████| 124/124 [00:00<00:00, 21.8kB/s] loading cached tokens in data/tiny_shakespeare_val.bin /AppleInternal/Library/BuildRoots/8d3bda53-8d9c-11ec-abd7-fa6a1964e34e/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Utility/MPSLibrary.mm:504: failed assertion `MPSKernel MTLComputePipelineStateCache unable to load function copyNDArrayData. Compiler encountered an internal error: (null) ' zsh: abort python train_gpt2.py
env
log