Downloads · 30 days
0
VaraVroom/MindQsMed
MindQsMed is a machine learning model from VaraVroom. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Answer medical queries through a simple LLM chatbot rather than searching the web and piecing it together on your own
Downloads · 30 days
0
Access
Public
Updated May 4, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.xlsx765 KB · 98%
From the Hugging Face model README
Answer medical queries through a simple LLM chatbot rather than searching the web and piecing it together on your own
Access on the model on Hugging Face spaces - Response time is 2 mins on average
pip install transformers accelerate
pip install -qU pinecone-client[grpc] sentence-transformers
pip install gradio torch pandas openpyxl tqdm
OR
pip install -r requirements.txt
PINECONE_API_KEY to the value of the Pinecone API key, and PINECONE_ENV to the value of 'Environment' in Pineconepinecone_integration.py, changePINECONE_API_KEY = os.environ.get('PINECONE_API_KEY', None)
PINECONE_ENV = os.environ.get('PINECONE_ENV', "us-west4-gcp")
<br>
shard_model.py or in app.py, run the below codePI = PineconeIndex()
PI.build_index()
qamodel = QAModel()
model, tokenizer = qamodel.load_sharded_model()
If RAM capacity is not enough to fit the model, use another platform with larger capacity to shard the model and then download and paste the folder in the root directory
app.py.launch(share=True) embedded in the server-side program itself to create a public interface which removed the usage of FastAPI and ngrok