File size: 2,879 Bytes
8a17ca8 532ad2d 8a17ca8 532ad2d 8a17ca8 532ad2d 8a17ca8 532ad2d 8a17ca8 532ad2d 8a17ca8 532ad2d 8a17ca8 25effb7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
import logging
# Configure logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
# LoRA configurations
LORA_CONFIGS = {
"Gemma-3-1B-Instruct-Vi-Medical-LoRA": {
"base_model": "unsloth/gemma-3-1b-it",
"lora_adapter": "danhtran2mind/Gemma-3-1B-Instruct-Vi-Medical-LoRA"
},
"Gemma-3-1B-GRPO-Vi-Medical-LoRA": {
"base_model": "unsloth/gemma-3-1b-it",
"lora_adapter": "danhtran2mind/Gemma-3-1B-GRPO-Vi-Medical-LoRA"
},
"Llama-3.2-3B-Instruct-Vi-Medical-LoRA": {
"base_model": "unsloth/Llama-3.2-3B-Instruct",
"lora_adapter": "danhtran2mind/Llama-3.2-3B-Instruct-Vi-Medical-LoRA"
},
"Llama-3.2-1B-Instruct-Vi-Medical-LoRA": {
"base_model": "unsloth/Llama-3.2-1B-Instruct",
"lora_adapter": "danhtran2mind/Llama-3.2-1B-Instruct-Vi-Medical-LoRA"
},
"Llama-3.2-3B-Reasoning-Vi-Medical-LoRA": {
"base_model": "unsloth/Llama-3.2-3B-Instruct",
"lora_adapter": "danhtran2mind/Llama-3.2-3B-Reasoning-Vi-Medical-LoRA"
},
"Qwen-3-0.6B-Instruct-Vi-Medical-LoRA": {
"base_model": "Qwen/Qwen3-0.6B",
"lora_adapter": "danhtran2mind/Qwen-3-0.6B-Instruct-Vi-Medical-LoRA"
},
"Qwen-3-0.6B-Reasoning-Vi-Medical-LoRA": {
"base_model": "Qwen/Qwen3-0.6B",
"lora_adapter": "danhtran2mind/Qwen-3-0.6B-Reasoning-Vi-Medical-LoRA"
}
}
# LORA_CONFIGS = {
# "Gemma-3-1B-Instruct-Vi-Medical-LoRA": {
# "base_model": "google/gemma-3-1b-it",
# "lora_adapter": "danhtran2mind/Gemma-3-1B-Instruct-Vi-Medical-LoRA"
# },
# "Gemma-3-1B-GRPO-Vi-Medical-LoRA": {
# "base_model": "google/gemma-3-1b-it",
# "lora_adapter": "danhtran2mind/Gemma-3-1B-GRPO-Vi-Medical-LoRA"
# },
# "Llama-3.2-3B-Instruct-Vi-Medical-LoRA": {
# "base_model": "meta-llama/Llama-3.2-3B-Instruct",
# "lora_adapter": "danhtran2mind/Llama-3.2-3B-Instruct-Vi-Medical-LoRA"
# },
# "Llama-3.2-1B-Instruct-Vi-Medical-LoRA": {
# "base_model": "meta-llama/Llama-3.2-1B-Instruct",
# "lora_adapter": "danhtran2mind/Llama-3.2-1B-Instruct-Vi-Medical-LoRA"
# },
# "Llama-3.2-3B-Reasoning-Vi-Medical-LoRA": {
# "base_model": "meta-llama/Llama-3.2-3B-Instruct",
# "lora_adapter": "danhtran2mind/Llama-3.2-3B-Reasoning-Vi-Medical-LoRA"
# },
# "Qwen-3-0.6B-Instruct-Vi-Medical-LoRA": {
# "base_model": "Qwen/Qwen3-0.6B",
# "lora_adapter": "danhtran2mind/Qwen-3-0.6B-Instruct-Vi-Medical-LoRA"
# },
# "Qwen-3-0.6B-Reasoning-Vi-Medical-LoRA": {
# "base_model": "Qwen/Qwen3-0.6B",
# "lora_adapter": "danhtran2mind/Qwen-3-0.6B-Reasoning-Vi-Medical-LoRA"
# }
# }
# Model settings
MAX_INPUT_TOKEN_LENGTH = 4096
DEFAULT_MAX_NEW_TOKENS = 512
MAX_MAX_NEW_TOKENS = 2048
MODEL_IDS = list(LORA_CONFIGS.keys()) |