mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-02 06:03:43 +08:00
db0642ec47
date: 2025-12-18T23:23:16 master commit: 154c2334110373950bac1c36fc6e943cb1208326
9 lines
314 B
Python
9 lines
314 B
Python
import pathlib
|
|
from tinygrad import Tensor, Device, Context
|
|
from tinygrad.helpers import getenv
|
|
|
|
if __name__ == "__main__":
|
|
with Context(DEBUG=2):
|
|
disk_llama = Tensor(pathlib.Path(getenv("TESTFILE", "/raid/weights/LLaMA-3/8B/consolidated.00.pth")))
|
|
device_llama = disk_llama.to(Device.DEFAULT).realize()
|