Instructions to use gijl/Medical-AI-Multimodal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gijl/Medical-AI-Multimodal with Transformers:
# Load model directly from transformers import ClinicalReasoningEngine model = ClinicalReasoningEngine.from_pretrained("gijl/Medical-AI-Multimodal", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| library_name: transformers | |
| tags: [] | |
| # ๐ฅ Sovereign Medical Reasoning Engine (SMRE) v3.0 | |
| ## ๐ Introduction | |
| The Sovereign Medical Reasoning Engine is a high-performance, domain-specific AI model designed for clinical decision support. Unlike standard models, SMRE is built using **Pure Python & NumPy**, ensuring total sovereignty over the reasoning logic and zero reliance on external AI frameworks like PyTorch or TensorFlow. | |
| ## ๐ Technical Specifications | |
| - **Architecture:** Multi-Modal Transformer (Text + Vision + Time-Series). | |
| - **Parameters:** ~1.6 Million learnable parameters. | |
| - **Optimization:** Adam Optimizer with Cosine Learning Rate Decay. | |
| - **Tokenizer:** Custom Bilingual (EN/AR) word-level tokenizer with clinical compound recognition. | |
| ## ๐ Bilingual Capabilities | |
| The engine treats English and Arabic medical terms as semantically equivalent within the embedding space. | |
| - **Example:** `Myocardial Infarction` and `ุงุญุชุดุงุก ุนุถูุฉ ุงูููุจ` share the same conceptual grounding. | |
| ## ๐ Project Structure | |
| 1. `sovereign_medical_engine.pkl`: Model weights and architectural metadata. | |
| 2. `my_medical_ai_bilingual.pkl`: Vocabulary and tokenization mappings. | |
| 3. `config.json`: Technical accreditation and configuration file. | |
| 4. `inference.py`: Optimized script for running the model in production environments. | |
| ## ๐ Quick Start (Inference) | |
| ```python | |
| import numpy as np | |
| from inference import ClinicalReasoningEngine, BilingualMedicalTokenizer | |
| # 1. Initialize Tokenizer | |
| tok = BilingualMedicalTokenizer('my_medical_ai_bilingual.pkl') | |
| # 2. Load the Sovereign Engine | |
| engine = ClinicalReasoningEngine.load('sovereign_medical_engine.pkl', tok) | |
| # 3. Generate Medical Reasoning | |
| prompt = "Diagnosis for sudden chest pain and high blood pressure:" | |
| response = engine.generate(prompt, temperature=0.7, mode='nucleus') | |
| print(f"SMRE Output: {response}") | |
| ``` | |
| ## โ๏ธ Legal & Medical Disclaimer | |
| This model is intended for **educational and research purposes only**. It is not a substitute for professional medical advice, diagnosis, or treatment. For official clinical use, external regulatory validation is required. | |