Downloads · 30 days
7
16% of all-time downloads
edugredu/contextaugmner-medprocner-llama3b-r0-seed2
contextaugmner-medprocner-llama3b-r0-seed2 is a machine learning model from edugredu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as llama3.2.
This repository contains one LoRA adapter from the ContextAugmNER paper release, a reproducibility study of inference-protocol sensitivity in compact decoder-only Spanish clinical named entity recognition.
Downloads · 30 days
7
16% of all-time downloads
All-time downloads
43
Public
Repo size
212 MB
Likes
0
Public
Click a slice to open those files.
.safetensors195 MB · 92%
From the Hugging Face model README
This repository contains one LoRA adapter from the ContextAugmNER paper release, a reproducibility study of inference-protocol sensitivity in compact decoder-only Spanish clinical named entity recognition.
The adapter is released as a PEFT/LoRA artifact. It does not contain merged base-model weights. Users must obtain the upstream base model and comply with the base-model licence and access terms.
medprocnerllama3bmeta-llama/Llama-3.2-3B-Instructr0 (R0-normal)2train_medprocner_opt1_r0_llama3b_seed2medprocner-llama3b-r0-seed2adapter_model.safetensors: LoRA adapter weights.adapter_config.json: PEFT adapter configuration, including base model.adapter_manifest.csv: one-row manifest mapping this HF repository to the
paper run ID and release metadata.training_args.bin is excluded from the default upload because it is not needed
for inference and can contain environment-specific training state.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = "meta-llama/Llama-3.2-3B-Instruct"
adapter_id = "edugredu/contextaugmner-medprocner-llama3b-r0-seed2"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(
base_model,
torch_dtype="auto",
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
model.eval()
The paper's scored runs used the project inference code, strict parser, deterministic span alignment, official shared-task scorers, greedy decoding, chunking at 1800 characters with 200-character overlap, and a generation budget of 960 new tokens. For paper reproduction, use the linked code release and the manifest rather than ad hoc prompting.
AuxStop, batch-one execution, matched stop/truncation, online-stop-only, offline-truncate, and left-padding conditions are inference-time protocols. They reuse trained adapters and are not separate trained checkpoints.
For the central corrected inference recommendation, trained R0 adapters are reused with left-padding at batch size 64 or effective batch-one execution, depending on the reported contrast. R1 adapters are retained for the historical primary grid and transparency about the original rationale-training comparison.
The adapter was trained on public, de-identified Spanish clinical NER benchmark data distributed by the original shared-task organizers. Dataset access and use must follow the MedProcNER, SympTEMIST, and DisTEMIST task terms.
This artifact is intended for research reproducibility, audit of inference protocols, and controlled comparison with the ContextAugmNER paper results. It is not a clinical decision-support system and should not be used for patient care without independent validation, governance review, and task-specific error analysis.
Built with Llama.
Llama 3.2 is licensed under the Llama 3.2 Community License, Copyright (c) Meta Platforms, Inc. All Rights Reserved.
If you use this adapter, cite the ContextAugmNER paper and the corresponding base model.