初始化项目,由ModelHub XC社区提供模型
Model: alpha-ai/LLAMA3-3B-Medical-COT Source: Original Platform
This commit is contained in:
36
.gitattributes
vendored
Normal file
36
.gitattributes
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||
*.model filter=lfs diff=lfs merge=lfs -text
|
||||
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
||||
77
README.md
Normal file
77
README.md
Normal file
@@ -0,0 +1,77 @@
|
||||
---
|
||||
base_model: LLAMA-3.2-3B-Instruct
|
||||
tags:
|
||||
- text-generation-inference
|
||||
- transformers
|
||||
- unsloth
|
||||
- llama
|
||||
- gguf
|
||||
license: apache-2.0
|
||||
language:
|
||||
- en
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<img src="https://cdn-uploads.huggingface.co/production/uploads/669777597cb32718c20d97e9/4emWK_PB-RrifIbrCUjE8.png"
|
||||
alt="Title card"
|
||||
style="width: 500px;
|
||||
height: auto;
|
||||
object-position: center top;">
|
||||
</div>
|
||||
|
||||
**Website - https://www.alphaai.biz**
|
||||
|
||||
# Uploaded Model - LLAMA3-3B-Medical-COT
|
||||
- Developed by: Alpha AI
|
||||
- License: Apache-2.0
|
||||
- Fine-tuned from model: LLAMA-3.2-3B-Instruct
|
||||
- This LLAMA-3.2-3B-Instruct model was fine-tuned using Unsloth and Hugging Face’s TRL library, ensuring efficient training and high-quality inference.
|
||||
|
||||
|
||||
# Newer versions
|
||||
- https://huggingface.co/alpha-ai/Medical-Guide-COT-llama3.2-1B
|
||||
- https://huggingface.co/alpha-ai/Medical-Diagnosis-COT-Gemma3-270M
|
||||
|
||||
**Overview**
|
||||
|
||||
LLAMA3-3B-Medical-COT is a fine-tuned reasoning and medical problem-solving model built over LLAMA-3.2-3B-Instruct. The model is trained on a dataset focused on open-ended medical problems, aimed at enhancing clinical reasoning and structured problem-solving in AI systems.
|
||||
|
||||
This dataset consists of challenging medical exam-style questions with verifiable answers, ensuring factual consistency in responses. The fine-tuning process has strengthened the model’s chain-of-thought (CoT) reasoning, allowing it to break down complex medical queries step by step while maintaining conversational fluency.
|
||||
|
||||
Designed for on-device and local inference, the model is optimized for quick and structured reasoning, making it highly efficient for healthcare applications, academic research, and AI-driven medical support tools.
|
||||
|
||||
**Model Details**
|
||||
- Model: LLAMA-3.2-3B-Instruct
|
||||
- Fine-tuned By: Alpha AI
|
||||
- Training Framework: Unsloth + Hugging Face TRL
|
||||
- License: Apache-2.0
|
||||
- Format: GGUF (Optimized for local use)
|
||||
|
||||
**Quantization Levels Available:**
|
||||
- q4_k_m
|
||||
- q5_k_m
|
||||
- q8_0
|
||||
- 16-bit Precision (This)
|
||||
Others - https://huggingface.co/alphaaico/LLAMA3-3B-Medical-COT-GGUF
|
||||
|
||||
**Use Cases:**
|
||||
- Medical Reasoning & Diagnosis Support – Assists in clinical discussions, case reviews, and problem-solving for medical professionals.
|
||||
- AI-Assisted Medical Learning – Enhances student learning through structured explanations and reasoning on medical exam questions.
|
||||
- Logical & Step-by-Step Problem Solving – Handles structured inference tasks beyond medical reasoning, making it useful in scientific research.
|
||||
- Conversational AI for Healthcare – Powers virtual assistants and AI-driven consultation tools with evidence-based responses.
|
||||
|
||||
**Model Performance:**
|
||||
- Fine-tuned on Verified Medical Reasoning Data – Ensures step-by-step logical responses grounded in medical accuracy.
|
||||
- Optimized for Local Deployment – Runs efficiently on personal GPUs and edge devices without requiring cloud infrastructure.
|
||||
- Structured Thought Process – Breaks down complex medical questions into logical, evidence-based answers.
|
||||
|
||||
**Limitations & Biases:**
|
||||
|
||||
While trained on verified medical datasets, this model is not a replacement for professional medical advice and should be used as a supplementary tool rather than a definitive diagnostic system.
|
||||
The model may exhibit biases from its dataset, and responses should always be validated by medical experts before being used in real-world applications.
|
||||
|
||||
**Acknowledgments**
|
||||
Special thanks to:
|
||||
- Unsloth for optimizing fine-tuning pipelines.
|
||||
- Hugging Face TRL for robust model training tools.
|
||||
- Dataset contributors for providing structured medical reasoning problems.
|
||||
39
config.json
Normal file
39
config.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"_name_or_path": "unsloth/llama-3.2-1b-instruct-bnb-4bit",
|
||||
"architectures": [
|
||||
"LlamaForCausalLM"
|
||||
],
|
||||
"attention_bias": false,
|
||||
"attention_dropout": 0.0,
|
||||
"bos_token_id": 128000,
|
||||
"eos_token_id": 128009,
|
||||
"head_dim": 64,
|
||||
"hidden_act": "silu",
|
||||
"hidden_size": 2048,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 8192,
|
||||
"max_position_embeddings": 131072,
|
||||
"mlp_bias": false,
|
||||
"model_type": "llama",
|
||||
"num_attention_heads": 32,
|
||||
"num_hidden_layers": 16,
|
||||
"num_key_value_heads": 8,
|
||||
"pad_token_id": 128004,
|
||||
"pretraining_tp": 1,
|
||||
"rms_norm_eps": 1e-05,
|
||||
"rope_scaling": {
|
||||
"factor": 32.0,
|
||||
"high_freq_factor": 4.0,
|
||||
"low_freq_factor": 1.0,
|
||||
"original_max_position_embeddings": 8192,
|
||||
"rope_type": "llama3"
|
||||
},
|
||||
"rope_theta": 500000.0,
|
||||
"tie_word_embeddings": true,
|
||||
"torch_dtype": "float16",
|
||||
"transformers_version": "4.48.2",
|
||||
"unsloth_fixed": true,
|
||||
"unsloth_version": "2025.1.7",
|
||||
"use_cache": true,
|
||||
"vocab_size": 128256
|
||||
}
|
||||
14
generation_config.json
Normal file
14
generation_config.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"bos_token_id": 128000,
|
||||
"do_sample": true,
|
||||
"eos_token_id": [
|
||||
128001,
|
||||
128008,
|
||||
128009
|
||||
],
|
||||
"max_length": 131072,
|
||||
"pad_token_id": 128004,
|
||||
"temperature": 0.6,
|
||||
"top_p": 0.9,
|
||||
"transformers_version": "4.48.2"
|
||||
}
|
||||
3
model.safetensors
Normal file
3
model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e44b07f54489d11939034fa3a413ff4e3a673ae031320dee3c51e2fbe28483e8
|
||||
size 2471645464
|
||||
3
pytorch_model.bin
Normal file
3
pytorch_model.bin
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5d4187d234cb31c7cd9e6675132271937ce5db370602f213f0fa2c9bc03059fc
|
||||
size 2471678098
|
||||
23
special_tokens_map.json
Normal file
23
special_tokens_map.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"bos_token": {
|
||||
"content": "<|begin_of_text|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"eos_token": {
|
||||
"content": "<|eot_id|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"pad_token": {
|
||||
"content": "<|finetune_right_pad_id|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
}
|
||||
}
|
||||
BIN
tokenizer.json
(Stored with Git LFS)
Normal file
BIN
tokenizer.json
(Stored with Git LFS)
Normal file
Binary file not shown.
2067
tokenizer_config.json
Normal file
2067
tokenizer_config.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user