21 Downloads Updated 2 years ago
ollama run tri282/mitya:7b-q5_k_m
mitya is a model based on Dostoevsky’s renowned works, including but not limited to: The Brothers Karamazov, Crime & Punishment, Demons, etc. It is trained upon the open-sourced model Mistral-7b-v0.3 and comes in 6 distinct sizes and quantizations.
before everyone, for everyone and everything
this model was initially trained on 7,000 question-answer pairs with LoRA, and later on adapted to its base model. given the limited training examples it was fine-tuned on, expect minor, if not any (for i spitefully claim), errors with regards to its syntax and so on
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
path = “tri282/dostoevskyGPT_merged”
tokenizer = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.from_pretrained(path)
input_text = “your text here”
inputs = tokenizer(input_text, return_tensors = “pt”)
with torch.no_grad():
____outputs = model.generate(**inputs, max_new_tokens = 250)
output_text = tokenizer.decode(outputs[0], skip_special_tokens = True)
print(output_text)
from huggingface_hub import snapshot_download
path = “tri282/dostoevskyGPT_merged”
snapshot_download(repo_id = path, local_dir = “./your_directory_here”)
currently propriety
this model was trained for 6 hours on Tesla L4 GPU. it is roughly 27GB with float32 precision

i hold firm awareness of the current limitations with regards to my model, that being said, i had a great time testing it out. i ask nothing but your great expectations on future optimizations and versions
special thanks to Dostoevsky himself, cordially