Views
No views yet
d_model = 57610xtechnologieS instruction dataset) to adopt a helpful Chatbot persona (మనుషుడు: -> సహాయకుడు:).1import torch
2from huggingface_hub import hf_hub_download
3
4model_path = hf_hub_download(repo_id="VenkataRamanaKurumallajaddangi/Telugu", filename="Telugu_Model_Instruct_V2.pt")
5tok_path = hf_hub_download(repo_id="VenkataRamanaKurumallajaddangi/Telugu", filename="telugu_spm.model")
6
7# Load Weights
8model = TeluguGPT(Config)
9model.load_state_dict(torch.load(model_path, map_location='cpu')['model_state_dict'])
10model.eval()
11
12# Generate
13prompt = "మనుషుడు: ఒక మంచి ఆరోగ్య సూత్రం చెప్పండి.\nసహాయకుడు:"
14print(model.generate(prompt))