Skip to content

Instantly share code, notes, and snippets.

View monk1337's full-sized avatar
🌱
It's a long hard fight / But I'll always live for tomorrow.

Monk (looking for PhD Fall’24) monk1337

🌱
It's a long hard fight / But I'll always live for tomorrow.
View GitHub Profile
personal
base_model: meta-llama/Meta-Llama-3-8B
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer
load_in_8bit: false
load_in_4bit: true
strict: false
datasets:
- path: aaditya/alpaca_subset_1
#!/bin/bash
#Inspired from mlabonne autogguf work with modifications
cat << "EOF"
$$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\
$$ __$$\ $$ | $$ |\__$$ __|$$ __$$\ $$ __$$\ $$ __$$\ $$ | $$ |$$ _____|
$$ / $$ |$$ | $$ | $$ | $$ / $$ | $$ / \__|$$ / \__|$$ | $$ |$$ |
$$$$$$$$ |$$ | $$ | $$ | $$ | $$ |$$$$$$\ $$ |$$$$\ $$ |$$$$\ $$ | $$ |$$$$$\
$$ __$$ |$$ | $$ | $$ | $$ | $$ |\______|$$ |\_$$ |$$ |\_$$ |$$ | $$ |$$ __|
$$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ |
base_model: google/gemma-7b
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer
load_in_8bit: false
load_in_4bit: true
strict: false
# huggingface repo
datasets:
{
"Dataset": [
"multimedqa",
"medmcqa",
"medqa_4options",
"mmlu_anatomy",
"mmlu_clinical_knowledge",
"mmlu_college_biology",
"mmlu_college_medicine",
"mmlu_medical_genetics",
Top Row Filters:
1. Tasks: This would list the general tasks that AI models and datasets in the life sciences and medical domains tend to address.
2. Sizes: Size of datasets or models.
3. Sources: Where the data/model originates from (e.g., Kaggle, Huggingface, research institutions).
4. Modalities: Data types like images (X-rays, MRIs), sequences (genomic data), texts (medical records), etc.
5. Licenses: Open source, proprietary, etc.
6. Other: Miscellaneous filters that might not fit into the other categories.
{
"id":2,
"input":"A patient with fever and chill and severe coughing with cold. He has fever since 7 days and swelling at right foot. Already he is diagnosed with diabetes malattie. He is on tablet meclizidam 500 and insulin 12 unit since last 1 year. Now his reports are showing that he is malaria positive with right foot cellulitis. He is on tablet zoseph cv, tablet lumerex 4 bd for 3 days, tablet paracetamol 500 for 3 days, capsule pandi twice bd, daily dressing with glycerin and kmn 4, daily hgt checking twice a day and giving dose of insulin as per scale.",
"output":{
"suggested_symptoms":[
"Decreased sensation in right foot",
"Difficulty in walking due to swelling and pain",
"Frequent urination",
"Increased thirst",
"Unexpected weight loss",
from abc import ABCMeta, abstractmethod
from typing import List, Optional, Union, Dict
import tenacity
class Model(metaclass=ABCMeta):
"""
Abstract base class for a large language model(llm).
Sciatica Diagnosis and Treatment.
here is the conversation between doctor and patient comes to doctors opd,summerzie it clinically
Good morning, how can I help you today?
Hi, I've been experiencing some intense low back pain, and I was hoping you could give me some guidance on what might be causing it.
I'm sorry to hear that you're in pain. Let's start by discussing your symptoms. Can you describe the nature of the pain? Is it a dull ache, a sharp or shooting pain, or something else?
{
"suggested_symptoms": "Decreased sensation in right foot, difficulty in walking due to swelling and pain, frequent urination, increased thirst, unexpected weight loss, fatigue, signs of infection around the right foot such as redness, warmth, pus discharge, malaise, severe cough with phlegm or blood, shortness of breath, weight loss, night sweats, history of insect bites or travel to malaria-endemic regions, periods of high fever alternating with periods of normal or low temperature (fever pattern associated with malaria), jaundice, pallor, enlarged spleen or liver, muscle aches, fatigue, nausea, and vomiting",
"suggested_diagnosis": "Uncontrolled Type 2 Diabetes Mellitus with complications of foot cellulitis and Malaria. The patient may also be at risk for a respiratory infection like Pneumonia due to severe coughing, which needs further investigation. In addition, given the existing diabetes, neuropathy and peripheral vascular disease should also be considered as part of the diabetes-related compl