Instructions to use svercoutere/llama-3-8b-instruct-abb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use svercoutere/llama-3-8b-instruct-abb with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("svercoutere/llama-3-8b-instruct-abb", dtype="auto", device_map="auto") - llama-cpp-python
How to use svercoutere/llama-3-8b-instruct-abb with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="svercoutere/llama-3-8b-instruct-abb", filename="llama-3-8b-instruct-abb-unsloth.Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use svercoutere/llama-3-8b-instruct-abb with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf svercoutere/llama-3-8b-instruct-abb:Q4_K_M # Run inference directly in the terminal: llama cli -hf svercoutere/llama-3-8b-instruct-abb:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf svercoutere/llama-3-8b-instruct-abb:Q4_K_M # Run inference directly in the terminal: llama cli -hf svercoutere/llama-3-8b-instruct-abb:Q4_K_M
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 svercoutere/llama-3-8b-instruct-abb:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf svercoutere/llama-3-8b-instruct-abb:Q4_K_M
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 svercoutere/llama-3-8b-instruct-abb:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf svercoutere/llama-3-8b-instruct-abb:Q4_K_M
Use Docker
docker model run hf.co/svercoutere/llama-3-8b-instruct-abb:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use svercoutere/llama-3-8b-instruct-abb with Ollama:
ollama run hf.co/svercoutere/llama-3-8b-instruct-abb:Q4_K_M
- Unsloth Studio
How to use svercoutere/llama-3-8b-instruct-abb 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 svercoutere/llama-3-8b-instruct-abb 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 svercoutere/llama-3-8b-instruct-abb to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for svercoutere/llama-3-8b-instruct-abb to start chatting
- Atomic Chat new
- Docker Model Runner
How to use svercoutere/llama-3-8b-instruct-abb with Docker Model Runner:
docker model run hf.co/svercoutere/llama-3-8b-instruct-abb:Q4_K_M
- Lemonade
How to use svercoutere/llama-3-8b-instruct-abb with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull svercoutere/llama-3-8b-instruct-abb:Q4_K_M
Run and chat with the model
lemonade run user.llama-3-8b-instruct-abb-Q4_K_M
List all available models
lemonade list
LLaMA-3-8B-Instruct LoRA Finetuned Model for ABB
General Breakdown of the ABB-LLM Model
Motivation
As a Tool for Translation, Summarization, QA Tasks: The ABB-LLM model is designed to handle tasks that require the generation of new text, such as translation, summarization, and question-answering (QA).
As a Baseline for Classification, Named Entity Recognition (NER), and Other Tasks: For tasks that involve understanding and processing text, such as classification and NER, this model provides a solid baseline.
Long Term vision
Custom Model Training: When enough data is available, custom models should be trained for specific tasks. This approach is more efficient and yields better performance than using a general-purpose LLM (like this one).
Fine-Tuning Specialized Models: Models like BERT, RoBERTa, etc., should be fine-tuned for specific tasks like classification and NER, which will outperform small LLMs on these tasks.
What to Expect?
Limitations: Current 8B models are inadequate for QA tasks due to higher rates of hallucination and lower accuracy. Therefore, it is advised to use small models for summarization, translation, and classification tasks.
Context-Based Tasks: For tasks that rely on provided context (such as documents or search results), small models can be effective. These tasks include summarization, translation, classification, and NER.
Output Format: This model is trained to return JSON output, which is more structured and easier to work with compared to the verbose default output of the base 8B model.
Use Cases
The ABB-LLM model is suitable for various tasks where context or facts are provided as context. These include:
Summarization: Generate concise summaries of any text, such as agenda items or BPMN files.
Translation: Perform simple translations of text, including agenda items and BPMN files.
Classification: Classify text into predefined hierarchies, such as categorizing agenda items or BPMN files.
Named Entity Recognition (NER): Extract entities from text, useful for identifying key information in agenda items or BPMN files.
Keyword Extraction: Extract relevant keywords from text, aiding in the identification of important terms in agenda items or BPMN files.
Datasets:
The ABB-LLM model is trained on the svercoutere/llama3_abb_instruct_dataset, which uses the following format:
#### Context: {Dutch text documents, JSON objects, ...} #### {task to be performed with the context}
Examples of these tasks can be found within the dataset.
- Downloads last month
- 20
4-bit
Model tree for svercoutere/llama-3-8b-instruct-abb
Base model
unsloth/llama-3-8b-Instruct-bnb-4bit