moose-mini / README.md
namanbnsl's picture
Update README.md
5d4f680 verified
|
raw
history blame contribute delete
No virus
600 Bytes

moose-mini

import torch
from huggingface_hub import hf_hub_download
moose = hf_hub_download(repo_id="namanbnsl/moose-mini", filename="model.py")
weights = hf_hub_download(repo_id="namanbnsl/moose-mini", filename="model.pth")
exec(open(moose).read())

params = ModelArgs()
model = Moose(params)
model.load_state_dict(torch.load(weights))
model.to(params.device)
print(model.generate("Once upon a time, there was a little car named Beep."))

Github

huggingface 🤗