v2.5.5
v2.5.5
KANama is now a PyPi Package!
you can install it via pip install kanama
Changes and Updates:
- The
KANamav5
MoE model is now renamed toKANaMoEv1
. - You can now save and load a model based on the config.json file via calling if
from model.handler import save_pretrained, from_pretrained
. Thesave_pretrained
has the path and the model as the input, thefrom_pretrained
function only takes in the math of the model and config.json file. quick_inference
has also been moved tomodel.handler
.
Example:
from model.handler import save_pretrained, from_pretrained, quick_inference
# load the model from a path
model = from_pretrained('path/to/model/')
# get a tokenizer and tokenize your prompt
# save the same model to a path
save_pretrained('path/to/new/model/', model)