Aller au contenu
ModelVérifiéExterne
Télécharger

MediMind 411M

MediMind-411M is a custom medical language model trained from scratch for biomedical and clinical text generation.

TypeCheckpointVersionRevision 95d683bÉditeur@koyelogCClasse

Source du modèle

Type
Checkpoint, Embedding, Text model
Taille du fichier
1,55–4,62 GB
Version
vRevision 95d683b
Mis à jour
3 oct. 2026
Éditeur
@koyelog
Téléchargements
0
Paramètres
411M
Tâches
Génération de texte
Source
Hugging Face

Description de la source

MediMind-411M

MediMind-411M is a custom medical language model trained from scratch for biomedical and clinical text generation.

This model was trained and uploaded by Koyeliya Ghosh under the Hugging Face account koyelog.

Overview

MediMind-411M is a 411M-parameter transformer-based language model designed to generate medical-style text.
It was trained on a large medical text collection and uses a custom tokenizer.

Training Summary

  • Model name: MediMind-411M
  • Parameters: approximately 411.1M
  • Training device: Kaggle GPU T4 x2
  • Total texts loaded: 171,047
  • Training samples tokenized: 50,000
  • Total batches: 12,500
  • Final average loss: 4.9253
  • Total runtime: about 5536.5 seconds (~92 minutes)

Architecture

This model uses a decoder-only transformer architecture with:

  • Embedding dimension: 1024
  • Layers: 24
  • Attention heads: 16
  • KV heads: 8
  • RoPE positional encoding
  • RMSNorm
  • SwiGLU-style feed-forward layers

Files in this Repository

  • medimind_final.pt — final trained model weights
  • checkpoint_latest.pt — latest training checkpoint
  • vocab.json — tokenizer vocabulary
  • merges.txt — tokenizer merges

Testing

The model was tested locally in a Kaggle notebook by:

  1. Downloading the model files from this Hugging Face repository
  2. Loading the tokenizer using vocab.json and merges.txt
  3. Rebuilding the training architecture in PyTorch
  4. Loading medimind_final.pt
  5. Generating outputs from medical prompts

Example test prompts

  • Patient presents with fever and cough. Diagnosis:
  • Symptoms of diabetes include
  • Treatment for hypertension includes

Observed behavior

The model successfully generates medical-style text and terminology.
Outputs show that the model has learned domain vocabulary and sentence patterns, but generations can still be noisy, mixed-topic, or clinically unreliable.

Limitations

  • This is an early-stage base language model, not an instruction-tuned chatbot.
  • It may produce incorrect, incomplete, or hallucinated medical statements.
  • It should not be used for real medical diagnosis, treatment, or decision-making.
  • Output quality can vary depending on prompt style and decoding settings.

Intended Use

This model is intended for:

  • learning and experimentation
  • research practice
  • testing custom LLM training pipelines
  • educational exploration of medical text generation

This model is not intended for direct clinical deployment or patient-facing use.

Example Usage

from huggingface_hub import hf_hub_download
from tokenizers import ByteLevelBPETokenizer
import torch

model_path = hf_hub_download(repo_id="koyelog/MediMind-411M", filename="medimind_final.pt")
vocab_path = hf_hub_download(repo_id="koyelog/MediMind-411M", filename="vocab.json")
merges_path = hf_hub_download(repo_id="koyelog/MediMind-411M", filename="merges.txt")

tokenizer = ByteLevelBPETokenizer(vocab_path, merges_path)

print("Load tokenizer and model architecture, then run generation.")

Future Work

Planned next improvements:

  • cleaner inference pipeline
  • better decoding and stopping rules
  • further training epochs
  • instruction tuning on medical QA data
  • model card improvements and benchmark evaluation

Author

Created by Koyeliya Ghosh
Hugging Face: koyelog

Disclaimer

This model is for research and educational purposes only.
It must not be used as a substitute for licensed medical advice or professional healthcare judgment.

Sources

1 source
Hugging FacePrincipalVersion 95d683b4fdcc0769c2d5795019dce9667bba765e
huggingface.co/koyelog/MediMind-411M/tree/95d683b4fdcc0769c2d5795019dce9667bba765e

Vérifié 3 oct.

Artefacts du modèle

21 artefacts

checkpoint_latest.pt

pt · 4,62 GB · SHA-256 c32f8fd8b545…3d93 · Hugging Face

Télécharger

checkpoint_sft.pt

pt · 4,62 GB · SHA-256 c40a337ba970…4c3c · Hugging Face

Télécharger

checkpoint_v3.pt

pt · 4,62 GB · SHA-256 12b676ae8297…525b · Hugging Face

Télécharger

checkpoint_v4_1.pt

pt · 4,62 GB · SHA-256 5105eb6c0408…cd34 · Hugging Face

Télécharger

checkpoint_v4.pt

pt · 4,62 GB · SHA-256 227e9c1864b4…2d5c · Hugging Face

Télécharger

checkpoint_v7.pt

pt · 4,62 GB · SHA-256 6851f22ebcf9…8f9b · Hugging Face

Télécharger

medimind_final.pt

pt · 1,55 GB · SHA-256 bc9466f36b1b…d92b · Hugging Face

Télécharger

medimind_sft_best.pt

pt · 1,55 GB · SHA-256 b26aff4f57fe…ca6f · Hugging Face

Télécharger

medimind_sft.pt

pt · 1,55 GB · SHA-256 ce7d98fcd043…9dbb · Hugging Face

Télécharger

medimind_v2.pt

pt · 1,55 GB · SHA-256 ae6f2485d70c…1032 · Hugging Face

Télécharger

medimind_v3_best.pt

pt · 1,55 GB · SHA-256 c9ac586287a6…df5d · Hugging Face

Télécharger

medimind_v3.pt

pt · 1,55 GB · SHA-256 c1f7871694da…5de0 · Hugging Face

Télécharger

medimind_v4_1_best.pt

pt · 1,55 GB · SHA-256 9ecd90b9cd20…4891 · Hugging Face

Télécharger

medimind_v4_1.pt

pt · 1,55 GB · SHA-256 316976718428…d138 · Hugging Face

Télécharger

medimind_v4_best.pt

pt · 1,55 GB · SHA-256 280d1523f4d0…df07 · Hugging Face

Télécharger

medimind_v4.pt

pt · 1,55 GB · SHA-256 dab88e210f82…2136 · Hugging Face

Télécharger

medimind_v5_checkpoint.pt

pt · 4,62 GB · SHA-256 52336c12c24d…8fe9 · Hugging Face

Télécharger

medimind_v5.pt

pt · 1,55 GB · SHA-256 6b13d9bd90d8…c22a · Hugging Face

Télécharger

medimind_v6_1_checkpoint.pt

pt · 4,62 GB · SHA-256 58b1ea7ed5be…088b · Hugging Face

Télécharger

medimind_v6_1.pt

pt · 1,55 GB · SHA-256 b92d1552f13f…5307 · Hugging Face

Télécharger

medimind_v7_best.pt

pt · 1,55 GB · SHA-256 ddc899e6164d…c343 · Hugging Face

Télécharger

Extraits de sources

3 extraits

--- language: - en license: mit tags: - medical - llm - pytorch - text-generation - custom-model pipeline_tag: text-generation library_name: pytorch --- # MediMind-411M MediMind-411M is a custom medical language model trained from scratch for biomedical and clinical text generation. This model was trained and uploaded by **Koyeliya Ghosh** under the Hugging Face account `koyelog`. ## Overview MediMind-411M is a 411M-parameter transformer-based language model designed to generate medical-style text. It was trained on a large medical text collection and uses a custom tokenizer. ## Training Summary - Model name: `MediMind-411M` - Parameters: approximately 411.1M - Training device: Kaggle GPU T4 x2 - Total texts loaded: 171,047 - Training samples tokenized: 50,000 - Total batches: 12,500 - Final average loss: 4.9253 - Total runtime: about 5536.5 seconds (~92 minutes) ## Architecture This model uses a decoder-only transformer architecture with: - Embedding dimension: 1024 - Layers: 24 - Attention heads: 16 - KV heads: 8 - RoPE positional encoding - RMSNorm - SwiGLU-style feed-forward layers ## Files in this Repository - `medimind_final.pt` — final trained model weights - `checkpoint_latest.pt` — latest training checkpoint - `vocab.json` — tokenizer vocabulary - `merges.txt` — tokenizer merges ## Testing The model was tested locally in a Kaggle notebook by: 1. Downloading the model files from this Hugging Face repository 2. Loading the tokenizer using `vocab.json` and `merges.txt` 3. Rebuilding the training architecture in PyTorch 4. Loading `medimind_final.pt` 5. Generating outputs from medical prompts ### Example test prompts - `Patient presents with fever and cough. Diagnosis:` - `Symptoms of diabetes include` - `Treatment for hypertension includes` ### Observed behavior The model successfully generates medical-style text and terminology. Outputs show that the model has learned domain vocabulary and sentence patterns, but generations can still be noisy, mixed-topic, or clinically unreliable. ## Limitations - This is an early-stage base language model, not an instruction-tuned chatbot. - It may produce incorrect, incomplete, or hallucinated medical statements. - It should **not** be used for real medical diagnosis, treatment, or decision-making. - Output quality can vary depending on prompt style and decoding settings. ## Intended Use T...

Source context: 0 downloads · 0 likes · Pipeline text-generation · Library pytorch · Repo koyelog/MediMind-411M

Source context: 0 downloads · 0 likes · Pipeline text-generation · Library pytorch · Repo koyelog/MediMind-411M