Downloads · 30 days
0
Bazsalanszky/Mistral-7b-0.1-hu
Mistral-7b-0.1-hu is a machine learning model from Bazsalanszky. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: Bazsalanszky - License: apache-2.0 - Finetuned from model : unsloth/mistral-7b-bnb-4bit
Downloads · 30 days
0
Access
Public
Updated Feb 29, 2024
Repo size
1.3 GB
Likes
4
Public
Click a slice to open those files.
.safetensors671 MB · 100%
From the Hugging Face model README
Ez a mistral 7b model magyar szövegre lett tanítva 10 000 véletlenszerűen kiválasztott cikken. Így valamivel szebben ír magyarul, mint az alap model.
Ez a modell NEM lett instrukciókra tanítva, valószínűleg nem fogja azokat követni.
# Load model directly
from transformers import AutoTokenizer, AutoModel
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
adapter_name = model.load_adapter("Bazsalanszky/Mistral-7b-0.1-hu")
model.active_adapters = adapter_name
inputs = tokenizer("Magyarország\nFővárosa:", return_tensors = "pt").to("cpu")
from transformers import TextStreamer
text_streamer = TextStreamer(tokenizer)
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 250)
Itt van egy példa arra, hogy hogyan viselkedik a modell a tanítás előtt és a tanítás után.
Bemenet: Magyarország\nFővárosa:
Magyarország
Fővárosa: Budapest
Népesség: 10 000 000 fő
Terület: 93 030 km²
## Magyarország
Hungary is a landlocked country in Central Europe. It is situated in the Carpathian Basin and is bordered by Slovakia to the north, Ukraine to the northeast, Romania to the east and southeast, Serbia to the south, Croatia to the southwest, Slovenia to the west, and Austria to the northwest. The country's capital and largest city is Budapest. Hungary is a member of the European Union, NATO, the OECD, the Visegr
Magyarország
Fővárosa: 1,7 millió lakosú Budapest
Népesség: 10 millió
Nyelv: magyar
A magyarok a honfoglalás után a mai Magyarország területén telepedtek le. A 11. században a Kárpát-medencében létrejött a Magyar Királyság, amely a 16. században a Habsburg Birodalom része lett. A 19. században a magyarok a szabadságharcot követően a Habsburg Birodalom része lett, majd 1918-ban függetlenné vált. A második világháború után a Szovjetunió szövetségese lett, majd 1989-ben a kommun