Edit model card

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

Finetuned gemma-2b-it with instructions in Swedish from aya

Sample code to load and run inference:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "./merged_gemma-2b-it-lora-svenne-v2"
tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")

messages = [
    {"role": "user", "content": "Hur gör man en bra såromläggning?"},
    {"role": "assistant", "content": "Om såret är lite större är det bra att täcka det med en kompress. Kompresser och en speciell häfta att fästa dem med kan du köpa på apotek."},
    {"role": "user", "content": "Om det bara är ett litet sår då?"}

inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to("cuda")

outputs = model.generate(inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

license: cc-by-4.0 datasets: - CohereForAI/aya_dataset language: - sv

Downloads last month
0
Safetensors
Model size
1.55B params
Tensor type
F32
·
FP16
·
U8
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.