Instructions to use alexlkc28/quality-lora-llama32-1b-1m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use alexlkc28/quality-lora-llama32-1b-1m 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 alexlkc28/quality-lora-llama32-1b-1m:Q8_0 # Run inference directly in the terminal: llama cli -hf alexlkc28/quality-lora-llama32-1b-1m:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf alexlkc28/quality-lora-llama32-1b-1m:Q8_0 # Run inference directly in the terminal: llama cli -hf alexlkc28/quality-lora-llama32-1b-1m:Q8_0
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 alexlkc28/quality-lora-llama32-1b-1m:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf alexlkc28/quality-lora-llama32-1b-1m:Q8_0
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 alexlkc28/quality-lora-llama32-1b-1m:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf alexlkc28/quality-lora-llama32-1b-1m:Q8_0
Use Docker
docker model run hf.co/alexlkc28/quality-lora-llama32-1b-1m:Q8_0
- LM Studio
- Jan
- Ollama
How to use alexlkc28/quality-lora-llama32-1b-1m with Ollama:
ollama run hf.co/alexlkc28/quality-lora-llama32-1b-1m:Q8_0
- Unsloth Studio
How to use alexlkc28/quality-lora-llama32-1b-1m 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 alexlkc28/quality-lora-llama32-1b-1m 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 alexlkc28/quality-lora-llama32-1b-1m to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for alexlkc28/quality-lora-llama32-1b-1m to start chatting
- Pi
How to use alexlkc28/quality-lora-llama32-1b-1m with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf alexlkc28/quality-lora-llama32-1b-1m:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "alexlkc28/quality-lora-llama32-1b-1m:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use alexlkc28/quality-lora-llama32-1b-1m with Docker Model Runner:
docker model run hf.co/alexlkc28/quality-lora-llama32-1b-1m:Q8_0
- Lemonade
How to use alexlkc28/quality-lora-llama32-1b-1m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull alexlkc28/quality-lora-llama32-1b-1m:Q8_0
Run and chat with the model
lemonade run user.quality-lora-llama32-1b-1m-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use alexlkc28/quality-lora-llama32-1b-1m with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf alexlkc28/quality-lora-llama32-1b-1m:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default alexlkc28/quality-lora-llama32-1b-1m:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use alexlkc28/quality-lora-llama32-1b-1m with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf alexlkc28/quality-lora-llama32-1b-1m:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "alexlkc28/quality-lora-llama32-1b-1m:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quality Management / ISO Standards LoRA โ Llama 3.2 1B
This is a LoRA adapter fine-tuned on 500,000 synthetic instruction-style samples covering quality-management systems, ISO standards, auditing, risk-based thinking, CAPA, Six Sigma, Lean, SPC, FMEA, and related topics.
Completed by Aboutknowledge (Hong Kong) Limited โ Alex Lee.
License note: the LoRA weights in this repository are released under the same terms as the base model, the Llama 3.2 Community License Agreement. Please review Meta's license before using or redistributing the merged weights.
Model details
| Item | Value |
|---|---|
| Base model | unsloth/Llama-3.2-1B-Instruct |
| Fine-tuning framework | Unsloth |
| LoRA rank (r) | 16 |
| LoRA alpha | 16 |
| LoRA dropout | 0.0 |
| Quantized training | 4-bit NF4 (bnb) |
| Training records | 500,000 (subset of a 1,000,000 synthetic dataset) |
| Training steps | 10,000 |
| Final train loss | 0.1137 |
| Sequence length | 2048 |
Included files
adapter_model.safetensors/adapter_config.jsonโ standard PEFT LoRA adapter.quality_lora_1m.q8_0.ggufโ Q8_0 GGUF file ready for Ollama.Modelfileโ example Ollama Modelfile (edit theFROMpath after downloading).
Use with transformers / Unsloth
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="unsloth/Llama-3.2-1B-Instruct",
max_seq_length=2048,
dtype=None,
load_in_4bit=True,
)
model = FastLanguageModel.get_peft_model(model, r=16, lora_alpha=16)
model.load_adapter("alexlkc28/quality-lora-llama32-1b-1m", adapter_name="default")
messages = [
{"role": "system", "content": "You are an expert in quality management systems and ISO standards."},
{"role": "user", "content": "What does ISO 9001:2015 clause 8.7 require?"},
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", tokenize=True).to("cuda")
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Use with Ollama
- Download the GGUF and
Modelfilefrom this repo. - Update the
FROMline in theModelfileto point to the downloaded GGUF path. - Create the model:
ollama create quality-lora-1m -f /path/to/Modelfile
ollama run quality-lora-1m
Training data
The data was generated synthetically from a compact ISO/quality-management knowledge base covering:
- ISO 9001, 14001, 45001, 27001, 13485, 50001
- IATF 16949 (automotive), AS9100D (aerospace)
- PDCA, risk-based thinking, process approach, CAPA, 8D, 5 Whys, FMEA, SPC, MSA, 5S, Lean, Six Sigma
- Audit checklists, nonconformity reports, KPI suggestions, interview questions
The full 1,000,000-record dataset is available locally in the project directory as data/quality_1m.jsonl.
Limitations
- Synthetic data can contain occasional grammar artifacts or mix standards in generic answers; always verify against the official standard text for compliance decisions.
- This is a small 1B model; while useful for Q&A and drafting, it should not replace human auditors or regulatory review.
- Downloads last month
- 29
8-bit
Model tree for alexlkc28/quality-lora-llama32-1b-1m
Base model
meta-llama/Llama-3.2-1B-Instruct
docker model run hf.co/alexlkc28/quality-lora-llama32-1b-1m:Q8_0