Views
No views yet
| Base Model | Meta Llama 3 8B Instruct |
| Fine-tuning | LoRA (Low-Rank Adaptation), 3-stage training |
| Format | GGUF Q8_0 (8-bit quantization) |
| Size | ~8.54 GB |
| Parameters | 8B |
| Runtime | Host PC only (mobile devices send requests via P2P tunnel) |
| License | Llama 3 Community License |
LoRA rank: 16
LoRA alpha: 32
Target modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Quantization: 4-bit (NF4) during training
Optimizer: paged_adamw_8bit
Gradient checkpointing: enabled1# Download the model
2huggingface-cli download kimdonghwanAIengineer/coflux-ai-gguf --local-dir ./coflux-ai
3
4# Run with llama.cpp
5./llama-cli -m ./coflux-ai/coflux-ai-q8_0.gguf -p "<|begin_of_text|><|start_header_id|>system<|end_header_id|>
6You are a security scanning module for a P2P collaboration system.<|eot_id|><|start_header_id|>user<|end_header_id|>
7Scan this code for vulnerabilities:
8\`\`\`python
9import subprocess
10user_input = input()
11subprocess.call(user_input, shell=True)
12\`\`\`<|eot_id|><|start_header_id|>assistant<|end_header_id|>" -n 2561from llama_cpp import Llama
2
3llm = Llama(
4 model_path="./coflux-ai-q8_0.gguf",
5 n_ctx=2048,
6 n_gpu_layers=-1,
7)
8
9# Security scanning
10output = llm.create_chat_completion(
11 messages=[
12 {
13 "role": "system",
14 "content": "You are a security scanning module for a P2P collaboration system. Analyze code for vulnerabilities and respond with a risk assessment."
15 },
16 {
17 "role": "user",
18 "content": "Scan this code:\n```python\nimport os\nos.system(input('cmd: '))\n```"
19 }
20 ],
21 temperature=0.1,
22 max_tokens=512,
23)
24print(output["choices"][0]["message"]["content"])
25
26# Workflow - Summarization
27output = llm.create_chat_completion(
28 messages=[
29 {
30 "role": "system",
31 "content": "You are a workflow automation module. Summarize the given content concisely."
32 },
33 {
34 "role": "user",
35 "content": "Summarize: The team discussed Q3 roadmap. Backend focuses on API optimization. Frontend is redesigning the dashboard. Security audit next week."
36 }
37 ],
38 temperature=0.3,
39 max_tokens=256,
40)
41print(output["choices"][0]["message"]["content"])1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
5tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
6
7# Load LoRA adapter (if available separately)
8# model = PeftModel.from_pretrained(base_model, "path/to/adapter")┌─────────────────────────────────────────────────┐
│ Host PC (Hub) │
│ │
│ ┌──────────┐ ┌───────────┐ ┌──────────────┐ │
│ │ Rust │ │ CoFlux AI │ │ TypeScript │ │
│ │ Core │→ │ (This │→ │ AI Router │ │
│ │ Security │ │ Model) │ │ + Workflow │ │
│ │ Scan │ │ │ │ │ │
│ └──────────┘ └───────────┘ └──────────────┘ │
│ ↑ ↑ ↑ │
│ └──────── Tauri IPC ──────────┘ │
│ ↑ │
│ WebRTC DataChannel │
│ (P2P, no central server) │
└──────────┬───────────┬──────────────────────────┘
│ │
┌──────┴──┐ ┌─────┴───┐
│ Mobile │ │ Guest │
│ Client │ │ Device │
│ (React │ │ │
│ Native) │ │ │
└─────────┘ └─────────┘1@misc{coflux-ai-2025,
2 title={CoFlux AI: Edge Security and Workflow Model for P2P Collaboration},
3 author={Kim Donghwan},
4 year={2025},
5 url={https://huggingface.co/kimdonghwanAIengineer/coflux-ai-gguf}
6}