Downloads · 30 days
22
6% of all-time downloads
khazarai/Llama-electronic-radiology-TR
Llama-electronic-radiology-TR is a text generation model from khazarai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.2.
This model is a domain-adapted version of Llama-3.2-1B, fine-tuned via continued pretraining on Turkish-language electronic radiology PhD theses. The model was trained in an autoregressive (causal language modeling) s…
Downloads · 30 days
22
6% of all-time downloads
All-time downloads
356
Public
Parameters
1.2B
2.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
This model is a domain-adapted version of Llama-3.2-1B, fine-tuned via continued pretraining on Turkish-language electronic radiology PhD theses. The model was trained in an autoregressive (causal language modeling) setup using the hazal/electronic-radiology-phd-thesis-trR dataset. Unlike instruction-tuned models, this version focuses on improving the model’s fluency, vocabulary, and semantic consistency in highly technical medical and radiological contexts. It is intended for downstream applications such as domain-specific generation, summarization, and potential fine-tuning for clinical tasks in Turkish.
The primary intended uses include:
This model is not instruction-tuned and does not perform well in prompt-based Q&A or dialogue setups without additional supervised fine-tuning.
The model has been trained exclusively on Turkish PhD-level academic texts in radiology. As such, its knowledge and language patterns are narrowly focused on:
It may underperform or produce awkward completions when applied to:
This model should not be used for clinical decision-making, diagnosis, or treatment recommendations. Despite being trained on medical content, it lacks factual grounding, context awareness, and real-time clinical judgment. Any outputs generated by this model must be verified by licensed medical professionals.
Continued pretraining on a small or repetitive corpus can lead to memorization of phrases, potentially exposing:
Although this dataset appears anonymized and academic, you should not use the model for data anonymization, patient privacy protection, or regulatory compliance tasks.
repetition_penalty, eos_token_id, etc.).Use the code below to get started with the model.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
tokenizer = AutoTokenizer.from_pretrained("khazarai/Llama-electronic-radiology-TR")
model = AutoModelForCausalLM.from_pretrained(
"khazarai/Llama-electronic-radiology-TR",
device_map={"":0}
)
input_text = "Bulgular: Gruplar arası yaş ve cinsiyet dağılımı açısından istatiksel olarakanlamlı farklılık saptanmadı."
inputs = tokenizer(input_text, return_tensors="pt", add_special_tokens=True).to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=1.0,
top_p=0.95,
repetition_penalty = 1.2,
eos_token_id=tokenizer.eos_token_id
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This dataset contains Turkish-language PhD theses focused on electronic and diagnostic radiology. It was curated for the purpose of training language models in the Turkish medical domain. The documents are academic in tone, rich in domain-specific vocabulary, and structured into medical sections (e.g., materials & methods, results, discussion).
Dataset link: hazal/electronic-radiology-phd-thesis-trR