Instructions to use student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf", dtype="auto") - llama-cpp-python
How to use student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf", filename="unsloth.F16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16 # Run inference directly in the terminal: llama-cli -hf student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16 # Run inference directly in the terminal: llama-cli -hf student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16
Use Docker
docker model run hf.co/student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16
- LM Studio
- Jan
- Ollama
How to use student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf with Ollama:
ollama run hf.co/student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16
- Unsloth Studio new
How to use student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf to start chatting
- Docker Model Runner
How to use student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf with Docker Model Runner:
docker model run hf.co/student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16
- Lemonade
How to use student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf:F16
Run and chat with the model
lemonade run user.Llama3.1_medicine_fine-tuned_24-09_16bit_gguf-F16
List all available models
lemonade list
Uploaded model
- Developed by: student-abdullah
- License: apache-2.0
- Finetuned from model: meta-llama/Meta-Llama-3.1-8B
- Created on: 25th September, 2024
Acknowledgement
Model Description
This model is fine-tuned from the meta-llama/Meta-Llama-3.1-8B base model to enhance its capabilities in generating relevant and accurate responses related to generic medications under the PMBJP scheme. The fine-tuning process included the following hyperparameters:
- Fine Tuning Template: Llama 3.1 Q&A
- Max Tokens: 512
- LoRA Alpha: 10
- LoRA Rank (r): 128
- Learning rate: 2e-4
- Gradient Accumulation Steps: 32
- Batch Size: 4
- Qunatization: 16 bits
Model Quantitative Performace
- Training Quantitative Loss: 0.1676 (at final 160th epoch)
Limitations
- Token Limitations: With a max token limit of 512, the model might not handle very long queries or contexts effectively.
- Training Data Limitations: The model’s performance is contingent on the quality and coverage of the fine-tuning dataset, which may affect its generalizability to different contexts or medications not covered in the dataset.
- Potential Biases: As with any model fine-tuned on specific data, there may be biases based on the dataset used for training.
- Downloads last month
- 18
16-bit
Model tree for student-abdullah/Llama3.1_medicine_fine-tuned_24-09_16bit_gguf
Base model
meta-llama/Llama-3.1-8B