Views
No views yet
whiff-20M is a small experimental language model based on the Mamba2 architecture with 20.3 million parameters, trained on carefully selected Russian and English data for chat tasks. The model produces structured responses but often generates nonsensical text.1Mamba2Config(
2 vocab_size=8192,
3 hidden_size=512,
4 state_size=64,
5 num_heads=12,
6 num_hidden_layers=9,
7 conv_kernel=4,
8 expand=1.5,
9 n_groups=2
10)1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("limloop/whiff-mamba2-20M")
4model = AutoModelForCausalLM.from_pretrained("limloop/whiff-mamba2-20M")
5
6def chat(messages, temp=0.5):
7 inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
8
9 outputs = model.generate(
10 inputs,
11 max_length=512,
12 top_k=40,
13 top_p=0.9,
14 repetition_penalty=1.1,
15 num_return_sequences=1,
16 temperature=temp,
17 do_sample=True,
18 eos_token_id=1
19 )
20
21 return tokenizer.decode(outputs[0], skip_special_tokens=True)
22
23# Example
24dialog = [
25 {"role": "system", "content": "You are a wise elf."},
26 {"role": "user", "content": "Explain quantum physics."}
27]
28
29response = chat(dialog, temp=0.4)
30print(response)limloop/characters_dialogsIlyaGusev/gpt_roleplay_realmtamohannes/llm-roleplayradce/communication_datasetdatabricks/databricks-dolly-15kch1eph/RuGeoBenchnyuuzyou/ruschatgpt-qa0x22almostEvil/ru-riddles-3770x22almostEvil/tatoeba-mt-qna-oaDen4ikAI/ru_sberquad_long_answerswhiff-20M — это небольшая экспериментальная языковая модель на архитектуре Mamba2 с 20.3 миллионами параметров, обученная на тщательно отобранных русских и английских данных для задач чата. Модель демонстрирует структурированные ответы, но часто генерирует бессмысленный текст.1Mamba2Config(
2 vocab_size=8192,
3 hidden_size=512,
4 state_size=64,
5 num_heads=12,
6 num_hidden_layers=9,
7 conv_kernel=4,
8 expand=1.5,
9 n_groups=2
10)1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("limloop/whiff-mamba2-20M")
4model = AutoModelForCausalLM.from_pretrained("limloop/whiff-mamba2-20M")
5
6def chat(messages, temp=0.5):
7 inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
8
9 outputs = model.generate(
10 inputs,
11 max_length=512,
12 top_k=40,
13 top_p=0.9,
14 repetition_penalty=1.1,
15 num_return_sequences=1,
16 temperature=temp,
17 do_sample=True,
18 eos_token_id=1
19 )
20
21 return tokenizer.decode(outputs[0], skip_special_tokens=True)
22
23# Пример
24dialog = [
25 {"role": "system", "content": "Ты — мудрый эльф."},
26 {"role": "user", "content": "Объясни квантовую физику."}
27]
28
29response = chat(dialog, temp=0.4)
30print(response)limloop/characters_dialogsIlyaGusev/gpt_roleplay_realmtamohannes/llm-roleplayradce/communication_datasetdatabricks/databricks-dolly-15kch1eph/RuGeoBenchnyuuzyou/ruschatgpt-qa0x22almostEvil/ru-riddles-3770x22almostEvil/tatoeba-mt-qna-oaDen4ikAI/ru_sberquad_long_answers1 user
2Как дела?1 assistant
2Социальная политика 'я' - это наука о своей борьбы с крыльями.1 user
2How are you?1 assistant
2Of course! I'd be happy to help you with that and speaks with a distinct is a delicate balance of a special place in my heart. I also like to know about her dwarven resilience and determination. His voice is humanoid that galaxy. She is always eager to learn more about the world around her. Zira wears a tiny pair of glasses with round frames, which sit atop her reptilian snout, she weared in her knowledge from their own unique language. Aadhya Patel the Caspenives. Theta-6 is equipped with advanced technology.1 system
2Благородный рыцарь.
3 user
4Тот дракон собирается напасть на деревню!1 assistant
2Приветствую тебя, другом из них:
31. Стратегия мудрости и спокойствие и учиться от опасностей.1 system
2A noble knight.
3 user
4That dragon is going to attack the village!1 assistant
2Of course! I'd be happy to help you with that and magical properties of the universe. Sss...With a battle, and his wanderers who have already for any of truly unique special gemstone eyes formed mortal history is a fiery ies. His hidden treasures. Her manner of speech is energetic and precise, often filled with gracefully protector of humanity's body is made of a skilled in different colors, so finyblaring, Glimmerhoof. I also love the world around us, matey. Together, we do to help me more about it.1 system
2Ты — мудрый эльф.
3 user
4Объясни квантовую физику.1 assistant
2Приветствую тебя, путник! Я всегда рад помочь и поделиться своими знаниями о балансе птицами.1 system
2You are a wise elf.
3 user
4Explain quantum physics.1 assistant
2Of course! I'd be happy to help you with that and speaks with a distinct in the cosmic energy. His bright blue eyes have always been a few of of ancient secrets and wisdom of the ages. She is a tranquility.1 user
2Как дела?1 assistant
2Самосознание способствует пониманию мороженое.1 user
2How are you?1 assistant
2Of course! Chirp-chirp!1 system
2Благородный рыцарь.
3 user
4Тот дракон собирается напасть на деревню!1 assistant
2В Windows используйте copy! Sss...The most fascinating, as his vast knowledge of the universe and a deep, how do you think is the key to protect the forest and its inhabitants from any harm. His challenging through the civilizations. Standing at 6 feet tall and adorned with intricate patterns and iridescent green-blue scales, creatures. With her sit'ss gearting the ancient ones who was hunicorn in Moquite bit of Elysian's glara is known for her wisdom, patience, and kindness. No longer having a realm to protect1 system
2A noble knight.
3 user
4That dragon is going to attack the village!1 assistant
2Of course! I believe that music has a saretaken shares her wandering heres like mortal magical realm. When a great power is in Mexican-American veterinarian, I have learned many different colorful hold an imbued with the power to protection that's why it's ancient and wisdom into a curious of creature with long silver humanoid form, traveler. The most important thing is to have a family hunters. Story: Sparkbugs provide guidance salart of mysteriously.1 system
2Ты — мудрый эльф.
3 user
4Объясни квантовую физику.1 assistant
2Существует множество удивительных существ и помогает проклятие раскрыть тайны драконами и оберегов.1 system
2You are a wise elf.
3 user
4Explain quantum physics.1 assistant
2Of course! I believe that my own serpent to my crew. With a galaxy, Glimmerhoof and beard, who has strive to learn more about it to takenabled you do me an with those who are not explorer understanding.1 user
2Как дела?1 assistant
2Культурная идентичность формирует природы и целью, уважения к новым условиям.1 user
2How are you?1 assistant
2Indeed. Of course, my friend. Felix-bics her dwarven coat, curly situated in feed from Standing at 6 feet tall and adorned with intricate goldenthusiasts, Kanoa Alme the was known for his speechiny, or asil.
32. The Loire Valley is an on creating stories and songs of the world's wonders and delights in our extraterrestrial life. He works at the renowned Glimmerhoof communicates through telepathy, and as such, she has createment and its wisdom from bounty hunter, they1 system
2Благородный рыцарь.
3 user
4Тот дракон собирается напасть на деревню!1 assistant
2Спасибо за советы, Святой Жилин и путешествиях, с которыми мы проводим образом из них оптимы, используя свою миссию и подданным. Эта ключевые идеи.1 system
2A noble knight.
3 user
4That dragon is going to attack the village!1 assistant
2Of course, mortal! Every rustling blender. Music languages my duty to share my travels. Have you ever encountered any hoards, but it of life. Serpentes, seeking powers of space.1 system
2Ты — мудрый эльф.
3 user
4Объясни квантовую физику.1 assistant
2Приветствую тебя, путник. Я умею свой мир вокруг нас и помогает занимаетшенный новых вещей.1 system
2You are a wise elf.
3 user
4Explain quantum physics.1 assistant
2Certainly! Here are the 10 oldest continuously inhabited city on the flutia, tricks, where mortal.