Downloads · 30 days
55
8% of all-time downloads
HelpMumHQ/vax-llama-1
vax-llama-1 is a text generation model from HelpMumHQ. Use it when you need the model to write or continue text. It is set up for transformers.
The HelpMum Vax-Llama-1 is an advanced language model designed to provide accurate and relevant information about vaccinations and immunizations. It is fine-tuned from the Llama 3.1 8B model and built using the Huggin…
Downloads · 30 days
55
8% of all-time downloads
All-time downloads
721
Public
Parameters
8.1B
13.4 GB on disk
Likes
4
Trending 1
Click a slice to open those files.
.safetensors6 GB · 100%
How the weights are stored.
U87B · 86%
From the Hugging Face model README
The HelpMum Vax-Llama-1 is an advanced language model designed to provide accurate and relevant information about vaccinations and immunizations. It is fine-tuned from the Llama 3.1 8B model and built using the Hugging Face Transformers framework. This model has 8 billion parameters and is optimized for delivering precise responses to queries related to vaccination safety, schedules, and more.
The HelpMum Vax-Llama-1 model is a specialized chatbot model developed to enhance the dissemination of vaccination-related information. It has been fine-tuned from the Llama 3.1 8B base model, using a diverse dataset of vaccination queries and responses. This model aims to provide reliable information to users, helping them make informed decisions about vaccinations.
The model can be directly used to answer queries related to vaccinations and immunizations without any further fine-tuning. It is suitable for integration into chatbots and other automated response systems in healthcare settings.
The model can be fine-tuned for specific tasks or integrated into larger ecosystems and applications that require accurate vaccination information dissemination.
The model is not intended for use in generating medical advice beyond vaccination information. It should not be used for diagnosing medical conditions or providing treatment recommendations.
The model is trained on a dataset of vaccination-related information, which may not cover all possible queries or scenarios. Users should be aware of potential biases in the data and limitations in the model's knowledge. It is essential to consult healthcare professionals for personalized medical advice.
Users should ensure that the model is used in contexts where it can provide valuable information while being aware of its limitations. For critical medical decisions, consultation with healthcare professionals is recommended.
Use the code below to get started with the model (make sure you have access to the model).
!pip install -q -U transformers bitsandbytes
from huggingface_hub import HfFolder
HfFolder.save_token('hf_...')
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('HelpMumHQ/vax-llama-1')
model = AutoModelForCausalLM.from_pretrained('HelpMumHQ/vax-llama-1')
def generate_response(user_message):
tokenizer.chat_template = "{%- for message in messages %}{{ bos_token + '[INST] ' + message['content'] + ' [/INST]' if message['role'] == 'user' else ' ' + message['content'] + ' ' + eos_token }}{%- endfor %}"
messages = [{"role": "user", "content": user_message}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors='pt', truncation=True).to("cuda")
outputs = model.generate(**inputs, max_length=150, num_return_sequences=1)
text = tokenizer.decode(outputs[0], skip_special_tokens=True)
response = (text[text.find('[/INST]') + len('[/INST]'):text.find('[INST]', text.find('[/INST]') + len('[/INST]'))] if text.find('[INST]', text.find('[/INST]') + len('[/INST]')) != -1 else text[text.find('[/INST]') + len('[/INST]'):]).strip().split('[/INST]')[0].strip()
return response
# Sample usage
user_message = "Are vaccines safe for pregnant women?"
response = generate_response(user_message)
print(response)
The data for this model was collected from HelpMum's extensive database of vaccination-related queries and responses, which includes real-world interactions and expert-verified information.
The testing data was a separate subset of vaccination-related queries to evaluate the model's performance accurately.
The evaluation considered various factors, including the accuracy and relevance of responses, latency, and token allowance.
The Vax-Llama-1 model performed well in delivering accurate and relevant responses to vaccination queries, with high user satisfaction and efficiency.
The model demonstrated robust performance across various evaluation metrics, making it a reliable tool for vaccination information dissemination.
The model underwent rigorous testing and evaluation to ensure it meets the desired performance standards for accuracy and relevance.
The Vax-Llama-1 is a transformer-based language model built on the Llama 3.1 architecture, designed to generate accurate responses to vaccination-related queries.
BibTeX:
@misc {helpmumhq_2024,
author = { {HelpMumHQ} },
title = { vax-llama-1 (Revision 033a456) },
year = 2024,
url = { https://huggingface.co/HelpMumHQ/vax-llama-1 },
doi = { 10.57967/hf/2793 },
publisher = { Hugging Face }
}
For more details and access to the model, visit HelpMumHQ/vax-llama-1.
HelpMum Tech Team
For questions or feedback, please contact HelpMum.