ONNX Model Zoo

tsilva/clinical-field-mapper-causal_lm

By tsilva · ↓ 0 · ♥ 0 · Updated 2025-05-05

What's in this repo

This page lists the files in tsilva/clinical-field-mapper-causal_lm, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 20 files, including 10 .json, 3 .txt, 2 .zip, 1 .md, 1 .safetensors, 1 .onnx
  • Last updated 2025-05-05

ONNX files

File Size Download
onnx/model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

Model Card for tsilva/clinical-field-mapper-causal_lm

This model is a fine-tuned version of distilbert/distilgpt2 on the tsilva/clinical-field-mappings dataset. Its purpose is to normalize healthcare database column names to a standardized set of target column names.

Task

This is a causal language model designed to map free-text field names to standardized schema terms.

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("tsilva/clinical-field-mapper-causal_lm") model = AutoModelForCausalLM.from_pretrained("tsilva/clinical-field-mapper-causal_lm")

def predict(input_text): inputs = tokenizer(input_text + "|", return_tensors="pt") outputs = model.generate(**inputs, max_new_tokens=50) print(tokenizer.decode(outputs[0], skip_special_tokens=True))

predict('cardi@')

Evaluation Results

  • train accuracy: 98.24%
  • validation accuracy: 89.84%
  • test accuracy: 89.35%

Training Details

  • Seed: 42
  • Epochs scheduled: 50
  • Epochs completed: 14
  • Early stopping triggered: Yes
  • Final training loss: 1.3344
  • Final evaluation loss: 1.1981
  • Optimizer: adamw_bnb_8bit
  • Learning rate: 0.0005
  • Batch size: 512
  • Precision: fp16
  • DeepSpeed enabled: True
  • Gradient accumulation steps: 1

License

Specify your license here (e.g., Apache 2.0, MIT, etc.)

Limitations and Bias

  • Model was trained on a specific clinical mapping dataset.
  • Performance may vary on out-of-distribution column names.
  • Ensure you validate model outputs in production environments.

Model info

text-generation transformers
transformers onnx safetensors gpt2 text-generation healthcare column-normalization distilgpt2 license:apache-2.0 model-index text-generation-inference endpoints_compatible
↓ 0 ♥ 0

Created: 2025-05-05

Updated: 2025-05-05

View on Hugging Face

Files (20)

.gitattributes
README.md
added_tokens.json
artifacts/2025-05-05T17-01-24Z/2025-05-05T17-01-24Z.zip
artifacts/2025-05-05T17-01-24Z/config.json
artifacts/2025-05-05T17-01-24Z/requirements.txt
artifacts/2025-05-05T17-39-49Z/2025-05-05T17-39-49Z.zip
artifacts/2025-05-05T17-39-49Z/config.json
artifacts/2025-05-05T17-39-49Z/requirements.txt
config.json
evaluation_report.json
generation_config.json
merges.txt
model.safetensors
onnx/model.onnx ONNX
special_tokens_map.json
tokenizer.json
tokenizer_config.json
training_args.bin
vocab.json

Related models