Instructions to use metindeder/Llama-3-Gherkin-QA-Expert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use metindeder/Llama-3-Gherkin-QA-Expert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="metindeder/Llama-3-Gherkin-QA-Expert") 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("metindeder/Llama-3-Gherkin-QA-Expert") model = AutoModelForCausalLM.from_pretrained("metindeder/Llama-3-Gherkin-QA-Expert", 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 metindeder/Llama-3-Gherkin-QA-Expert 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 metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M # Run inference directly in the terminal: llama cli -hf metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M # Run inference directly in the terminal: llama cli -hf metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M
Use Docker
docker model run hf.co/metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use metindeder/Llama-3-Gherkin-QA-Expert with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "metindeder/Llama-3-Gherkin-QA-Expert" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "metindeder/Llama-3-Gherkin-QA-Expert", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M
- SGLang
How to use metindeder/Llama-3-Gherkin-QA-Expert 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 "metindeder/Llama-3-Gherkin-QA-Expert" \ --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": "metindeder/Llama-3-Gherkin-QA-Expert", "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 "metindeder/Llama-3-Gherkin-QA-Expert" \ --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": "metindeder/Llama-3-Gherkin-QA-Expert", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use metindeder/Llama-3-Gherkin-QA-Expert with Ollama:
ollama run hf.co/metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use metindeder/Llama-3-Gherkin-QA-Expert with Docker Model Runner:
docker model run hf.co/metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M
- Lemonade
How to use metindeder/Llama-3-Gherkin-QA-Expert with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull metindeder/Llama-3-Gherkin-QA-Expert:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3-Gherkin-QA-Expert-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Llama-3-Gherkin-QA-Expert 🧪🤖
This model is a fine-tuned version of Llama-3-8B, specialized in Software Quality Assurance (QA) and Test Automation. It is trained to think like a Senior QA Engineer using Chain of Thought (CoT) reasoning to generate comprehensive Gherkin feature files from requirements, code snippets, or industrial scenarios.
🚀 Key Capabilities
This model goes beyond simple text generation; it understands logic, boundaries, and safety-critical constraints.
- Requirement to Gherkin: Converts user stories into Gherkin (Given/When/Then) scenarios covering Happy Paths, Negative Paths, and Edge Cases.
- White-Box Testing (Code Analysis): Can analyze Python/Java code snippets, identify
if/elsebranches, boundary values (e.g.,< 0,>= 100), and error handling logic to generate unit-level Gherkin tests. - Industrial Automation (PLC): Understands sensors, actuators, and safety thresholds (e.g., Pressure, Temperature) to generate safety-critical test scenarios for Industrial IoT and PLC systems.
💻 How to Use
Option 1: Fast Inference with Unsloth (Python)
from unsloth import FastLanguageModel
import torch
model_name = "metindeder/Llama-3-Gherkin-QA-Expert"
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = model_name,
max_seq_length = 2048,
dtype = None,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
# Define your requirement or code
prompt_input = """
Kullanıcı kayıt olurken şifre en az 8 karakter olmalı,
büyük harf ve özel karakter içermelidir. Aksi halde hata dönmelidir.
"""
prompt = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
You are an expert QA Engineer. Analyze the given requirement using Chain of Thought (CoT). First, extract variables and rules. Then, generate a Gherkin feature file.
### Input:
{prompt_input}
### Response:
"""
inputs = tokenizer([prompt], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 1024, use_cache = True)
print(tokenizer.batch_decode(outputs)[0].split("### Response:")[-1])
- Downloads last month
- 30
Model tree for metindeder/Llama-3-Gherkin-QA-Expert
Base model
unsloth/llama-3-8b-Instruct-bnb-4bit