Skip to content

An unopimized big ass OpenWebText-based LLM dedicated to what-you-know.

Notifications You must be signed in to change notification settings

team-nameless/kirin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

kirin

An unopimized big ass OpenWebText-based LLM dedicated to what-you-know.

How to use:

import torch
import torch.nn as nn

device = 'cuda' if torch.cuda.is_available() else 'cpu'

model = None

# load your model with whatever you want.
# even torch.load()

kirin = model.to(device)

prompt = input()
context_matrix = torch.tensor(encode(prompt), dtype=torch.long, device=device)
response = decode(kirin.generate(context_matrix.unsqueeze(0), max_new_tokens=150)[0].tolist())

About

An unopimized big ass OpenWebText-based LLM dedicated to what-you-know.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published