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.

Model Details

Model Description

This adapter is a LoRA fine-tuned module designed to enhance Named Entity Recognition (NER) capabilities on free-text LABORATORY-BRCA reports.
It enables structured extraction of key entities related to genetic testing, such as gene names, mutations, results, and testing methods.
The adapter is specifically trained to work on LABORATORY-BRCA records and must be used in conjunction with the Llama-3.1-8B base model.

Example

  • Input
[Results]

====================================================================
BRCA2 gene pathogenic variation : Detected
Identified pathogenic variation : c.6553del (p.Ala2185Leufs*6)
====================================================================

[Interpretation]

์œ ์ „์„ฑ ์œ ๋ฐฉ์•”/๋‚œ์†Œ์•”์˜ ์›์ธ์œ ์ „์ž์ธ BRCA2 ์œ ์ „์ž์˜ ๋ชจ๋“  exon๊ณผ ์ธ์ ‘ intron์˜ ์—ผ๊ธฐ์„œ์—ด์„ ๋ถ„์„ํ•œ ๊ฒฐ๊ณผ pathogenic variation์œผ๋กœ ํŒ๋‹จ๋˜๋Š” c.6553del (p.Ala2185Leufs*6) ๋ณ€์ด๊ฐ€ Heterozygote๋กœ ๊ด€์ฐฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค(rs80359603). ๋ฐœ๊ฒฌ๋œ ๋ณ€์ด์— ๋Œ€ํ•œ ๊ฐ€์กฑ๊ฒ€์‚ฌ์™€ ์œ ์ „์ƒ๋‹ด์„ ์ถ”์ฒœํ•ฉ๋‹ˆ๋‹ค.

์œ ๋ฐฉ์•”์€ ์œ ์ „์„ฑ, ๊ฐ€์กฑ์„ฑ, ์‚ฐ๋ฐœ์„ฑ์œผ๋กœ ๋ถ„๋ฅ˜๋˜๋ฉฐ, ์ด ์ค‘ ์œ ์ „์„ฑ ์œ ๋ฐฉ์•”์€ ์ „์ฒด ์œ ๋ฐฉ์•”์˜ ์•ฝ 5-10%๋ฅผ ์ฐจ์ง€ํ•ฉ๋‹ˆ๋‹ค. ์œ ์ „์„ฑ ์œ ๋ฐฉ์•”์€ ๋Œ€๋ถ€๋ถ„ BRCA1/2 ์œ ์ „์ž ๋ณ€์ด์™€ ๊ด€๋ จ ์žˆ์œผ๋ฉฐ, KOHBRA study์— ์˜ํ•˜๋ฉด BRCA ๋Œ์—ฐ๋ณ€์ด๋Š” ์œ ๋ฐฉ์•”/๋‚œ์†Œ์•” ๊ฐ€์กฑ๋ ฅ์ด ์žˆ๋Š” ํ•œ๊ตญ์ธ ์œ ๋ฐฉ์•” ํ™˜์ž์˜ ์•ฝ 22% ์ •๋„์—์„œ ๋ฐœ๊ฒฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. BRCA1/2 ์œ ์ „์ž๋ณ€์ด๋Š” ์ƒํ”ผ์„ฑ๋‚œ์†Œ์•” ํ™˜์ž์˜ ์•ฝ 10% ์ •๋„์—์„œ๋„ ๊ด€์ฐฐ๋˜๋ฉฐ, high-grade, fallopian tube tumor, primary peritoneal cancer์™€ ์—ฐ๊ด€์žˆ๋Š” ๊ฒƒ์œผ๋กœ ์•Œ๋ ค์ ธ ์žˆ์Šต๋‹ˆ๋‹ค. ์œ„ํ—˜๋„๋Š” ๋Œ์—ฐ๋ณ€์ด ์œ ํ˜•๊ณผ ๊ฐ€์กฑ๋ ฅ์— ๋”ฐ๋ผ์„œ ์ฐจ์ด๋ฅผ ๋ณด์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
BRCA1/2 ์œ ์ „์ž๋ณ€์ด๋ฅผ ๋ถ„์„ํ•จ์œผ๋กœ์จ ์ด๋Ÿฌํ•œ ์ข…์–‘๋“ค์˜ ๋ฐœ๋ณ‘ ์›์ธ๊ณผ ๋ฐœ๋ณ‘ ์˜ˆ์ธก์— ๋„์›€์„ ์ค„ ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์•”์˜ˆ๋ฐฉ์„ ์œ„ํ•œ ํšจ๊ณผ์ ์ธ ๋ฐฉ๋ฒ•๋“ค์„ ํ†ตํ•ด ๋ฐœ๋ณ‘๋ฅ ์„ ๊ฐ์†Œ์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


[Comments]

1. ๋ณธ ๊ฒ€์‚ฌ๋Š” BRCA ์œ ์ „์ž์— ๋Œ€ํ•œ ์—ผ๊ธฐ์„œ์—ด๋ถ„์„๋ฒ•์œผ๋กœ ์‹œํ–‰๋˜์—ˆ์œผ๋ฉฐ, ์•ฝ 99%์˜ ์—ผ๊ธฐ๋ณ€์ด(nucleotide base alterations, small insertions/deletions)๋ฅผ ๊ฒ€์ถœํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.  
2. ๊ฒ€์‚ฌ์ƒ ๋Œ์—ฐ๋ณ€์ด๊ฐ€ ๊ฒ€์ถœ๋˜์ง€ ์•Š์€ ๊ฒฝ์šฐ ์—ผ๊ธฐ์„œ์—ด๋ถ„์„๋ฒ•์œผ๋กœ ๊ฒ€์ถœํ•  ์ˆ˜ ์—†๋Š” large deletion/duplication ๋“ฑ์˜ ๊ฐ€๋Šฅ์„ฑ์„ ๋ฐฐ์ œํ•  ์ˆ˜ ์—†์œผ๋ฉฐ ์ด ๊ฒฝ์šฐ ์ถ”๊ฐ€๊ฒ€์‚ฌ์‹œํ–‰(์˜ˆ,MLPA)์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ BRCA ์ด์™ธ ๋‹ค๋ฅธ cancer susceptibility gene(์˜ˆ, TP53, PTEN)์— ์˜ํ•œ ๊ฐ€๋Šฅ์„ฑ๋„ ๋ฐฐ์ œํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
3. ๋ณธ ๊ฒ€์‚ฌ์˜ ์—ผ๊ธฐ๋ณ€์ด์˜ classification์€ 2015 ACMG-AMP Variant-Interpretation Guidelines๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•˜์—ฌ ๊ฒฐ๊ณผ๋ณด๊ณ  ๋‹น์‹œ ๋ฌธํ—Œ๋ณด๊ณ ์™€ public database๋ฅผ ๊ทผ๊ฑฐ๋กœ ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜, ์ด๋Ÿฌํ•œ ์—ผ๊ธฐ๋ณ€์ด์˜ classification์€ ํ›„์†์—ฐ๊ตฌ์— ์˜ํ•ด ๋ฐ”๋€Œ๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์œผ๋ฉฐ, ์ด๋Ÿฌํ•œ ์‚ฌ์‹ค์ด ํ™•์ธ๋œ ๊ฒฝ์šฐ ๊ฒฐ๊ณผ์˜ ์ˆ˜์ •๋ณด๊ณ ๊ฐ€ ์žˆ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
4. ๋ณธ ๊ฒ€์‚ฌ๊ฒฐ๊ณผ๋Š” ๊ฐ exon๋ณ„๋กœ 5', 3' flanking region, 20bps ๋ฒ”์œ„์˜ ๋ณ€์ด๋งŒ์„ ๋ณด๊ณ ํ•ฉ๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ, ์ด ๋ฒ”์œ„ ์ด์™ธ์˜ ๋ณ€์ด ์กด์žฌ (deep intron,  promoter region, regulatory region์˜ ๋ณ€์ด) ๊ฐ€๋Šฅ์„ฑ์€ ๋ฐฐ์ œํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. 



[Informations]

-Specimen : Genomic DNA isolated from peripheral blood leukocytes
-Target disease : Breast-ovarian cancer, familial,1 (OMIM 604370)
                  Breast-ovarian cancer, familial,2 (OMIM 612555)
-Analyzed gene : BRCA1 on Chr.17q21, BRCA2 on Chr.13q12.3
-Mode of inheritance : Autosomal dominant
-Penetrance : 
 BRCA1, breast cancer (57-60%), ovarian cancer (40-59%)
 BRCA2, breast cancer (49-55%), ovarian cancer (16.5-18%)
 (according to NCCN guidelines)
-Method : sequencing 
 BRCA1, total 22 coding exons; BRCA2, total 26 coding exons 
-Reference sequence: 
 BRCA1- OMIM 113705; NM_007294.3; NG_005905.2 
 BRCA2- OMIM 600185; NM_000059.3; NG_012772.3
  • Output
{
  "reported_result": [
    {
      "gene": "BRCA2",
      "refseq_id": [
        "NM_000059.3",
        "NG_012772.3"
      ],
      "spec_site": "peripheral blood leukocytes",
      "spec_method": "sequencing \r\n BRCA1, total 22 coding exons; BRCA2, total 26 coding exons",
      "pathogenicity": "pathogenic variation",
      "detection_result": "Detected"
    },
    {
      "gene": "BRCA2",
      "dbsnp": "rs80359603",
      "zygosity": "Heterozygote",
      "aa_change": "p.Ala2185Leufs*6",
      "dna_change": "c.6553del",
      "pathogenicity": "pathogenic variation"
    }
  ]
}

How to use

Environment

python = "^3.10"
peft = "^0.13.2"
trl = "^0.12.1"
vllm = "^0.8.3"
gunicorn = "^21.2.0"
packaging = "^24.0"
ninja = "^1.11.1.1"
fastapi = "^0.115.12"
uvicorn = {extras = ["standard"], version = "^0.34.0"}

Inference with vLLM

  • Serving
python -m vllm.entrypoints.openai.api_server \
  --model meta-llama/Meta-Llama-3-8B \
  --adapter-path techlab-khc/Llama-laboratory-brca \
  --gpu-memory-utilization 0.9
  • Request
import requests

prompt = '''
{report text}
'''

response = requests.post(
    "http://localhost:8000/v1/completions",
    headers={"Content-Type": "application/json"},
    json={
        "model": "meta-llama/Meta-Llama-3-8B",
        "prompt": prompt,
        "max_tokens": 1000,
        "temperature": 0.0
    }
)

print(response.json()["choices"][0]["text"])

License

Disclaimer

  • This adapter is intended for research purposes only.
  • Any clinical or diagnostic decision should be made by qualified professionals. Outputs are for reference, not for direct medical or clinical application.

Contact

For questions, bug reports, or collaboration, please open an issue in this repository.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for techlab-khc/Llama-laboratory-brca

Finetuned
(1504)
this model

Collection including techlab-khc/Llama-laboratory-brca