Instructions to use oleksiizirka/llama-3-8b-openemis-bot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use oleksiizirka/llama-3-8b-openemis-bot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="oleksiizirka/llama-3-8b-openemis-bot") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("oleksiizirka/llama-3-8b-openemis-bot") model = AutoModelForCausalLM.from_pretrained("oleksiizirka/llama-3-8b-openemis-bot", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use oleksiizirka/llama-3-8b-openemis-bot 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 oleksiizirka/llama-3-8b-openemis-bot # Run inference directly in the terminal: llama cli -hf oleksiizirka/llama-3-8b-openemis-bot
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf oleksiizirka/llama-3-8b-openemis-bot # Run inference directly in the terminal: llama cli -hf oleksiizirka/llama-3-8b-openemis-bot
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 oleksiizirka/llama-3-8b-openemis-bot # Run inference directly in the terminal: ./llama-cli -hf oleksiizirka/llama-3-8b-openemis-bot
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 oleksiizirka/llama-3-8b-openemis-bot # Run inference directly in the terminal: ./build/bin/llama-cli -hf oleksiizirka/llama-3-8b-openemis-bot
Use Docker
docker model run hf.co/oleksiizirka/llama-3-8b-openemis-bot
- LM Studio
- Jan
- vLLM
How to use oleksiizirka/llama-3-8b-openemis-bot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "oleksiizirka/llama-3-8b-openemis-bot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oleksiizirka/llama-3-8b-openemis-bot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/oleksiizirka/llama-3-8b-openemis-bot
- SGLang
How to use oleksiizirka/llama-3-8b-openemis-bot with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "oleksiizirka/llama-3-8b-openemis-bot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oleksiizirka/llama-3-8b-openemis-bot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "oleksiizirka/llama-3-8b-openemis-bot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oleksiizirka/llama-3-8b-openemis-bot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use oleksiizirka/llama-3-8b-openemis-bot with Ollama:
ollama run hf.co/oleksiizirka/llama-3-8b-openemis-bot
- Unsloth Desktop
- Docker Model Runner
How to use oleksiizirka/llama-3-8b-openemis-bot with Docker Model Runner:
docker model run hf.co/oleksiizirka/llama-3-8b-openemis-bot
- Lemonade
How to use oleksiizirka/llama-3-8b-openemis-bot with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull oleksiizirka/llama-3-8b-openemis-bot
Run and chat with the model
lemonade run user.llama-3-8b-openemis-bot-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Model Card for oleksiizirka/llama-3-8b-openemis-bot
Model Details
Model Description:
This is the model card for a fine-tuned version of Llama 3.1 with 8 billion parameters. The model has been fine-tuned on client-specific data and quantized using GGIF format to optimize memory usage and performance. It was developed to better handle specific domain tasks for the client's project.
- Developed by: Oleksii Zirka
- Model type: Decoder
- Language(s) (NLP): English, Arabic, French, Russian
- License: Apache 2.0
- Finetuned from model : Llama 3.1 (8 billion parameters)
Uses
Direct Use
The model can be used to assist in handling specific domain-related NLP tasks, such as data quality validation, report generation, and user query handling in education management systems.
Downstream Use
Applicable in industry-specific tasks for handling language variations, improving data validation, and generating insights from structured educational data.
Out-of-Scope Use
The model is not designed for offensive, illegal, or discriminatory purposes.
Bias, Risks, and Limitations
Since the model is fine-tuned on client-specific data, it might not generalize well to unrelated domains or data. Users should ensure proper usage and review results for bias or unintended outputs in their use case.
How to Get Started with the Model
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("oleksiizirka/llama-3-8b-openemis-bot")
model = AutoModelForCausalLM.from_pretrained("oleksiizirka/llama-3-8b-openemis-bot")
inputs = tokenizer("Your input text here", return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training Details
Training Data
The model was fine-tuned on educational data provided by the client, which includes examination, reporting, and validation tasks relevant to OpenEMIS deployments. This ensures improved handling of specific queries related to educational data management.
Training Procedure
- Preprocessing: Data was preprocessed to remove noise and structured to fit the task-specific requirements of the client’s domain.
Training Hyperparameters
- Training regime: Three epochs training to avoid overfitting on a relatively small dataset (~8000 cases).
Evaluation
Testing Data, Factors & Metrics
- Testing Data: The model was tested on the client's dataset using various representative queries.
- Factors: Focus on domain-specific tasks.
- Metrics: Accuracy of query handling and data validation tasks.
Results
The fine-tuned model performed well on client-specific validation metrics, but generalization to external datasets may be limited.
Environmental Impact
- Hardware Type: Tesla T4 GPU
- Cloud Provider: AWS
- Compute Region: Singapore
Technical Specifications
Model Architecture and Objective
The model uses the Llama 3.1 architecture with 8 billion parameters, fine-tuned on domain-specific data for better performance in education management tasks.
Compute Infrastructure
- Hardware: Tesla T4 GPU
- Software: Python 3.12, PyTorch, HuggingFace Transformers, AWS SageMaker
Citation
You can use the following citations to credit this model:
BibTeX:
@misc{oleksiizirka_llama_3_8b_openemis_bot,
author = {Oleksii Zirka},
title = {Llama 3.1 Fine-Tuned Model for OpenEMIS Data},
year = {2024},
howpublished = {\url{https://huggingface.co/oleksiizirka/llama-3-8b-openemis-bot}},
}
APA:
Zirka, O. (2024). Llama 3.1 Fine-Tuned Model for OpenEMIS Aggregated Data.
Model Card Contact
For inquiries, please reach out to Oleksii Zirka at oleksii.zirka@kordit.com
- Downloads last month
- 46