How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf nihardon/fine-tuned-unit-test-generator:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf nihardon/fine-tuned-unit-test-generator:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf nihardon/fine-tuned-unit-test-generator:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf nihardon/fine-tuned-unit-test-generator: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 nihardon/fine-tuned-unit-test-generator:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf nihardon/fine-tuned-unit-test-generator: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 nihardon/fine-tuned-unit-test-generator:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf nihardon/fine-tuned-unit-test-generator:Q4_K_M
Use Docker
docker model run hf.co/nihardon/fine-tuned-unit-test-generator:Q4_K_M
Quick Links

🧠 Fine-Tuned Unit Test Generator (Llama-3-8B)

This repository contains the fine-tuned weights for the Unit Test Generator project.

πŸ“Š Training Details

  • Base Model: unsloth/llama-3-8b-bnb-4bit
  • Dataset: iamtarun/python_code_instructions_18k_alpaca
  • Method: QLoRA (Quantized Low-Rank Adaptation)
  • Framework: Unsloth + PyTorch + Hugging Face TRL

πŸ“¦ Files

  • llama-3-8b.Q4_K_M.gguf: The quantized model optimized for CPU inference (used in the Live Demo).
  • adapter_model.safetensors: The raw LoRA adapters.

πŸ”— Live Demo

You can try the model in the interactive web app here: Launch Unit Test Generator

Downloads last month
6
GGUF
Model size
8B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using nihardon/fine-tuned-unit-test-generator 1