Views
No views yet
cc-by-nc-4.01from transformers import GPT2LMHeadModel, AutoTokenizer
2
3model = GPT2LMHeadModel.from_pretrained('Lominub44/PicoNosenso-v1')
4tokenizer = AutoTokenizer.from_pretrained('Lominub44/PicoNosenso-v1')
5
6input_text = "<|startoftext|>Question: What is the capital of France?\nAnswer:"
7inputs = tokenizer(input_text, return_tensors='pt')
8outputs = model.generate(**inputs,
9 max_length=256,
10 temperature=0.4, # Recommended
11 repetition_penalty=1.2,
12do_sample=True)
13print(tokenizer.decode(outputs[0]))1@misc{PicoNosenso,
2 author = {Lominub44},
3 title = {{PicoNosenso-v1: Where Accuracy Takes a Cosmic Vacation}},
4 year = {2025},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/Lominub44/PicoNosenso-v1}}
7}
8
9@misc{alpaca,
10 author = {Rohan Taori and Ishaan Gulrajani and Tianyi Zhang and Yann Dubois and Xuechen Li and Carlos Guestrin and Percy Liang and Tatsunori B. Hashimoto },
11 title = {Stanford Alpaca: An Instruction-following LLaMA model},
12 year = {2023},
13 publisher = {GitHub},
14 journal = {GitHub repository},
15 howpublished = {\url{https://github.com/tatsu-lab/stanford_alpaca}},
16}
17
18@misc{no_robots,
19 author = {Nazneen Rajani and Lewis Tunstall and Edward Beeching and Nathan Lambert and Alexander M. Rush and Thomas Wolf},
20 title = {No Robots},
21 year = {2023},
22 publisher = {Hugging Face},
23 journal = {Hugging Face repository},
24 howpublished = {\url{https://huggingface.co/datasets/HuggingFaceH4/no_robots}}
25}