Instructions to use TensorVizion/Loi-LLM 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 TensorVizion/Loi-LLM 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 TensorVizion/Loi-LLM # Run inference directly in the terminal: llama cli -hf TensorVizion/Loi-LLM
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TensorVizion/Loi-LLM # Run inference directly in the terminal: llama cli -hf TensorVizion/Loi-LLM
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 TensorVizion/Loi-LLM # Run inference directly in the terminal: ./build/bin/llama cli -hf TensorVizion/Loi-LLM
Use Docker
docker model run hf.co/TensorVizion/Loi-LLM
- Llama new
- LM Studio
- Jan
- Ollama
How to use TensorVizion/Loi-LLM with Ollama:
ollama run hf.co/TensorVizion/Loi-LLM
- Unsloth Desktop
- Pi
How to use TensorVizion/Loi-LLM with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TensorVizion/Loi-LLM
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "TensorVizion/Loi-LLM" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use TensorVizion/Loi-LLM with Docker Model Runner:
docker model run hf.co/TensorVizion/Loi-LLM
- Lemonade
How to use TensorVizion/Loi-LLM with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TensorVizion/Loi-LLM
Run and chat with the model
lemonade run user.Loi-LLM-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use TensorVizion/Loi-LLM with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TensorVizion/Loi-LLM
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:9931/v1 hermes config set model.default TensorVizion/Loi-LLM
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use TensorVizion/Loi-LLM with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf TensorVizion/Loi-LLM
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:9931/v1 \ --custom-model-id "TensorVizion/Loi-LLM" \ --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"
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,130 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: llama3.2
|
| 3 |
---
|
| 4 |
+
Vector AI
|
| 5 |
+
|
| 6 |
+
**A fine-tuned general-purpose chat model built on Meta's Llama 3.2 3B Instruct.**Developed by [LiquidVizion](https://liquidvizion.me) · Based on `meta-llama/Llama-3.2-3B-Instruct`
|
| 7 |
+
|
| 8 |
+
* * *
|
| 9 |
+
|
| 10 |
+
## Model Overview
|
| 11 |
+
|
| 12 |
+
Vector AI is a conversational language model fine-tuned from Llama 3.2 3B Instruct using QLoRA (4-bit quantized low-rank adaptation). It is designed for general chat and assistant tasks, with training focused on improving conversational coherence, instruction following, and response quality at the 3B parameter scale.
|
| 13 |
+
|
| 14 |
+
| Property | Value |
|
| 15 |
+
| --- | --- |
|
| 16 |
+
| Base Model | meta-llama/Llama-3.2-3B-Instruct |
|
| 17 |
+
| Fine-tune Method | QLoRA (PEFT) |
|
| 18 |
+
| Parameters | ~3B |
|
| 19 |
+
| Context Length | 4096 tokens |
|
| 20 |
+
| Language | English |
|
| 21 |
+
| License | Llama 3.2 Community License |
|
| 22 |
+
|
| 23 |
+
* * *
|
| 24 |
+
|
| 25 |
+
## Repository Contents
|
| 26 |
+
|
| 27 |
+
This repository includes four files for different use cases:
|
| 28 |
+
|
| 29 |
+
| File | Description | Use case |
|
| 30 |
+
| --- | --- | --- |
|
| 31 |
+
| `model.safetensors` | Full fp16 merged model | Production inference, further fine-tuning |
|
| 32 |
+
| `vector-ai-q6.gguf` | Q6_K GGUF quantization | High-quality local inference (llama.cpp, LM Studio) |
|
| 33 |
+
| `vector-ai-q4.gguf` | Q4_K_M GGUF quantization | Faster/lighter local inference, lower VRAM |
|
| 34 |
+
| `adapter_model.safetensors` | PEFT LoRA adapter weights | Apply on top of the base Llama 3.2 3B Instruct |
|
| 35 |
+
|
| 36 |
+
* * *
|
| 37 |
+
|
| 38 |
+
## Quickstart
|
| 39 |
+
|
| 40 |
+
### PEFT adapter (load on top of base model)
|
| 41 |
+
|
| 42 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 43 |
+
from peft import PeftModel
|
| 44 |
+
import torch
|
| 45 |
+
|
| 46 |
+
base_model_id = "meta-llama/Llama-3.2-3B-Instruct"
|
| 47 |
+
adapter_id = "liquidvizion/vector-ai" # update with your HF repo path
|
| 48 |
+
|
| 49 |
+
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
|
| 50 |
+
base_model = AutoModelForCausalLM.from_pretrained(
|
| 51 |
+
base_model_id,
|
| 52 |
+
torch_dtype=torch.float16,
|
| 53 |
+
device_map="auto",
|
| 54 |
+
)
|
| 55 |
+
|
| 56 |
+
model = PeftModel.from_pretrained(base_model, adapter_id)
|
| 57 |
+
model = model.merge_and_unload() # optional: merge for faster inference
|
| 58 |
+
|
| 59 |
+
### llama.cpp / LM Studio (GGUF)
|
| 60 |
+
|
| 61 |
+
Download either GGUF file and load directly in LM Studio, Ollama, or llama.cpp:
|
| 62 |
+
|
| 63 |
+
# Q6 — recommended for quality (requires ~3.5 GB RAM)
|
| 64 |
+
llama-cli -m vector-ai-q6.gguf -p "You are Vector AI." --chat-template llama3
|
| 65 |
+
|
| 66 |
+
# Q4 — recommended for speed / lower memory (~2.5 GB RAM)
|
| 67 |
+
llama-cli -m vector-ai-q4.gguf -p "You are Vector AI." --chat-template llama3
|
| 68 |
+
|
| 69 |
+
* * *
|
| 70 |
+
|
| 71 |
+
## Chat Template
|
| 72 |
+
|
| 73 |
+
Vector AI uses the standard Llama 3.2 Instruct chat template:
|
| 74 |
+
|
| 75 |
+
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
|
| 76 |
+
You are Vector AI, a helpful assistant.<|eot_id|>
|
| 77 |
+
<|start_header_id|>user<|end_header_id|>
|
| 78 |
+
{your message here}<|eot_id|>
|
| 79 |
+
<|start_header_id|>assistant<|end_header_id|>
|
| 80 |
+
|
| 81 |
+
* * *
|
| 82 |
+
|
| 83 |
+
## Training Details
|
| 84 |
+
|
| 85 |
+
| Setting | Value |
|
| 86 |
+
| --- | --- |
|
| 87 |
+
| Base model | meta-llama/Llama-3.2-3B-Instruct |
|
| 88 |
+
| Fine-tune method | QLoRA |
|
| 89 |
+
| Quantization (training) | 4-bit NF4 (bitsandbytes) |
|
| 90 |
+
| Training framework | Unsloth + HuggingFace PEFT |
|
| 91 |
+
| Training data | General conversation / chat |
|
| 92 |
+
| Hardware | NVIDIA RTX 4060 8GB |
|
| 93 |
+
|
| 94 |
+
* * *
|
| 95 |
+
|
| 96 |
+
## Recommended Inference Settings
|
| 97 |
+
|
| 98 |
+
These settings work well for general chat use:
|
| 99 |
+
|
| 100 |
+
temperature = 0.7 # balanced creativity vs coherence
|
| 101 |
+
top_p = 0.9 # nucleus sampling
|
| 102 |
+
top_k = 50 # vocabulary diversity
|
| 103 |
+
repetition_penalty = 1.1 # reduces looping
|
| 104 |
+
max_new_tokens = 512
|
| 105 |
+
|
| 106 |
+
For more deterministic / factual responses, lower temperature to `0.3–0.5`.
|
| 107 |
+
|
| 108 |
+
* * *
|
| 109 |
+
|
| 110 |
+
## Limitations
|
| 111 |
+
|
| 112 |
+
* English only. Performance on other languages is untested.
|
| 113 |
+
* 3B parameter scale — will be outperformed on complex reasoning tasks by larger models.
|
| 114 |
+
* Not trained for code generation, mathematics, or domain-specific professional tasks.
|
| 115 |
+
* Like all language models, Vector AI can produce inaccurate or hallucinated responses. Always verify important information.
|
| 116 |
+
* Not aligned for safety-critical or high-stakes applications.
|
| 117 |
+
|
| 118 |
+
* * *
|
| 119 |
+
|
| 120 |
+
## License
|
| 121 |
+
|
| 122 |
+
This model is released under the **[Llama 3.2 Community License](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE)**.Use is subject to Meta's acceptable use policy. Commercial use is permitted under the terms of that license.
|
| 123 |
+
|
| 124 |
+
Base model: © Meta Platforms, Inc.Fine-tune and adapter weights: © LiquidVizion
|
| 125 |
+
|
| 126 |
+
* * *
|
| 127 |
+
|
| 128 |
+
## About TensorVizion
|
| 129 |
+
|
| 130 |
+
[LiquidVizion](https://liquidvizion.me) is a creative AI and design studio publishing open models, LoRA adapters, and generative AI tools.Find more models and resources on [HuggingFace](https://huggingface.co/liquidvizion) and [CivitAI](https://civitai.com).
|