Downloads · 30 days
0
0% of all-time downloads
swnometal666/finnish-healthcare-terminology-v3
finnish-healthcare-terminology-v3 is a machine learning model from swnometal666. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a fine-tuned Finnish language model specialized for healthcare terminology and medical education. Built on TurkuNLP/gpt3-finnish-small using LoRA (Low-Rank Adaptation).
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
1
Public
Repo size
888 KB
Likes
0
Public
Click a slice to open those files.
.safetensors888 KB · 99%
From the Hugging Face model README
This is a fine-tuned Finnish language model specialized for healthcare terminology and medical education. Built on TurkuNLP/gpt3-finnish-small using LoRA (Low-Rank Adaptation).
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
# Load base model and tokenizer
base_model = AutoModelForCausalLM.from_pretrained("TurkuNLP/gpt3-finnish-small")
tokenizer = AutoTokenizer.from_pretrained("TurkuNLP/gpt3-finnish-small")
# Load fine-tuned model
model = PeftModel.from_pretrained(base_model, "swnometal666/finnish-healthcare-terminology-v3")
# Generate response
prompt = "Kysymys: Mitä tarkoittaa diabetes? Vastaus:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Apache 2.0