mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-17 23:32:07 +08:00
33d5cfc393
date: 2025-12-18T23:23:16 master commit: 3cdee7b54718ee14bd85befd6c5bad3d699c5479
13 lines
346 B
Python
13 lines
346 B
Python
#!/usr/bin/env python3
|
|
from tinygrad import Tensor, TinyJit, nn
|
|
from extra.models.llama import FeedForward
|
|
|
|
if __name__ == "__main__":
|
|
model = FeedForward(4096, 14336)
|
|
for x in nn.state.get_parameters(model): x.replace(x.half()).realize()
|
|
jrun = TinyJit(model)
|
|
for i in range(5):
|
|
print(f"*** run {i}")
|
|
jrun(Tensor.rand(1, 4096))
|
|
|