Downloads Β· 30 days
5
5% of all-time downloads
Jun-y00/hari-q3-bnb-4bit
hari-q3-bnb-4bit is a machine learning model from Jun-y00. 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.
π§ Korean Medical LLM (QA-Finetuned) by Healthcare AI Research Institute of Seoul National University Hospital
Downloads Β· 30 days
5
5% of all-time downloads
All-time downloads
105
Public
Parameters
14.8B
9.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.9 GB Β· 100%
How the weights are stored.
U813.6B Β· 90%
From the Hugging Face model README
π§ Korean Medical LLM (QA-Finetuned) by Healthcare AI Research Institute of Seoul National University Hospital
Jun-y00/hari-q3-bnb-4bitλ μμΈλνκ΅λ³μ μλ£ AI μ°κ΅¬μ(HARI)μμ κ°λ°ν νκ΅μ΄ κΈ°λ° μλ£ LLMμ BitsAndBytes 4bit μμνλ‘ μμνν λ²μ μ λλ€. μ£Όμ λͺ©μ μ μλ£ μ§μμλ΅(QA) λ° μμ μΆλ‘ μ§μμ λλ€.
Jun-y00/hari-q3-bnb-4bitThis model was fine-tuned using a curated corpus of Korean medical QA-style data derived from publicly available, de-identified sources. The training data includes clinical guidelines, academic publications, exam-style questions, and synthetic prompts reflecting real-world clinical reasoning.
Training Data Characteristics:
Benchmark Evaluation:
β οΈ These benchmarks are provided for research purposes only and do not imply clinical safety or efficacy.
We strictly adhere to ethical AI development and privacy protection:
β οΈ This model is intended for research and educational purposes only and should not be used to make clinical decisions.
The Healthcare AI Research Institute (HARI) is a pioneering research group within Seoul National University Hospital, driving innovation in medical AI.
We welcome collaboration with:
π§ Contact: [email protected]
π Website: Seoul National University Hospital
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load tokenizer and model
model_name = "snuh/hari-q3"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = '''
### Instruction:
λΉμ μ μμ μ§μμ κ°μΆ μ λ₯νκ³ μ λ’°ν μ μλ νκ΅μ΄ κΈ°λ° μλ£ μ΄μμ€ν΄νΈμ
λλ€.
μ¬μ©μμ μ§λ¬Έμ λν΄ μ ννκ³ μ μ€ν μμ μΆλ‘ μ λ°νμΌλ‘ μ§λ¨ κ°λ₯μ±μ μ μν΄ μ£ΌμΈμ.
λ°λμ νμμ μ°λ Ή, μ¦μ, κ²μ¬ κ²°κ³Ό, ν΅μ¦ λΆμ λ± λͺ¨λ λ¨μλ₯Ό μ’
ν©μ μΌλ‘ κ³ λ €νμ¬ μΆλ‘ κ³Όμ κ³Ό μ§λ¨λͺ
μ μ μν΄μΌ ν©λλ€.
μνμ μΌλ‘ μ νν μ©μ΄λ₯Ό μ¬μ©νλ, νμνλ€λ©΄ μΌλ°μΈμ΄ μ΄ν΄νκΈ° μ¬μ΄ μ©μ΄λ λ³νν΄ μ€λͺ
ν΄ μ£ΌμΈμ.
### Question:
60μΈ λ¨μ±μ΄ 볡ν΅κ³Ό λ°μ΄μ νΈμνλ©° λ΄μνμμ΅λλ€.
νμ‘ κ²μ¬ κ²°κ³Ό λ°±νꡬ μμΉκ° μμΉνκ³ , μ°μΈ‘ νλ³΅λΆ μν΅μ΄ νμΈλμμ΅λλ€.
κ°μ₯ κ°λ₯μ±μ΄ λμ μ§λ¨λͺ
μ 무μμΈκ°μ?
'''.strip()
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=4096
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
Apache 2.0 License β Free for research and commercial use with attribution.
If you use this model in your work, please cite:
@misc{hari-q3,
title = {hari-q3},
url = {https://huggingface.co/snuh/hari-q3},
author = {Healthcare AI Research Institute(HARI) of Seoul National University Hospital(SNUH)},
month = {May},
year = {2025}
}