Views
No views yet
MedSoLLM/
├── dataset/ # Training datasets
│ ├── 6867.json # Negative samples
│ └── 7517.json # Positive samples
├── train/ # Training-related code
│ ├── Llama-3-8B-UltraMedical-KTO-LoRA/ # Trained model output
│ ├── KTO_train_custom.py # KTO training core code
│ ├── start_kto_training.sh # Training startup script
│ ├── KTO.py # KTO implementation
│ ├── check_kto_params.py # KTO parameter check
│ └── test_kto_config.py # KTO configuration test
├── evaluation_results/ # Evaluation results
│ ├── evaluation_summary.json # Evaluation summary
│ └── sample_*_eval.json # Detailed evaluation results for individual samples
├── random_samples/ # Random dialogue samples
│ └── sample_*.json # Dialogue sample files
├── logs/ # Training and evaluation logs
├── scripts/ # Auxiliary scripts
├── evaluate.py # Model evaluation script
├── eval_readme.md # Evaluation dimensions and criteria explanation
└── README.md # Project documentation1cd train
2chmod +x start_kto_training.sh
3./start_kto_training.shevaluate.py script to evaluate the model:python evaluate.py --model_path "Llama-3-8B-SFT-Med" --sample_dir "random_samples" --output_dir "evaluation_results"Patient: "Doctor, I was diagnosed with multiple bilateral breast cystic hyperplasia at a local hospital. They did an ultrasound, but I'm still worried. Could you explain what this means?"
Assistant: "I understand your concern. Let's look at the results together. The color Doppler ultrasound shows scattered low-echo bands forming nodular structures and multiple cysts. The largest cyst on the left is 25×5mm. Importantly, no blood flow was detected in these cysts. Do you think this lack of blood flow might indicate what?"
Patient: "Does that mean they're not cancerous? I heard that tumors usually have blood flow."
Assistant: "You're right. The lack of blood flow is a reassuring sign. The elasticity score of 3 also indicates benign characteristics. The mammogram shows dense tissue and some calcification, which is common in hyperplasia. The 1 cm nodule on the right breast looks well-defined—that's also a good sign. Based on these findings, do you think which treatment method would be most appropriate?"
Patient: "I'm not sure... Surgery looks scary, but should we remove them?"
Assistant: "That's a good question. Since the cysts are small (all less than 3 cm) and asymptomatic, and considering that ultrasound is more accurate than mammography for cysts, I recommend conservative management and regular monitoring. We'll do follow-up ultrasound to check for changes. Only when you experience pain or the cysts grow significantly will we consider surgery. Does this approach make sense to you?"