Downloads · 30 days
6
5% of all-time downloads
kimdonghwanAIengineer/coflux-ai-gguf
coflux-ai-gguf is a machine learning model from kimdonghwanAIengineer. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.
--- license: llama3 language: - en libraryname: gguf tags: - cybersecurity - security-scanning - workflow-automation - p2p - edge-ai - llama-3 - lora - gguf basemodel: meta-llama/Meta-Llama-3-8B-Instruct pipelinetag:…
Downloads · 30 days
6
5% of all-time downloads
All-time downloads
114
Public
Repo size
8.5 GB
Likes
0
Public
Click a slice to open those files.
.gguf8.5 GB · 100%
From the Hugging Face model README
license: llama3 language:
CoFlux AI is a lightweight, privacy-first AI model designed for the P2P AI Bridge System — a serverless collaboration platform where the host PC acts as the central hub. This model runs entirely on the host PC with zero cloud dependency, providing real-time security scanning and workflow automation within P2P tunnels.
| 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 |
CoFlux AI is purpose-built for two core tasks within a P2P collaboration environment:
CoFlux AI was trained in 3 stages using LoRA fine-tuning on a 16GB VRAM GPU:
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: enabled
# Download the model
huggingface-cli download kimdonghwanAIengineer/coflux-ai-gguf --local-dir ./coflux-ai
# Run with llama.cpp
./llama-cli -m ./coflux-ai/coflux-ai-q8_0.gguf -p "<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are a security scanning module for a P2P collaboration system.<|eot_id|><|start_header_id|>user<|end_header_id|>
Scan this code for vulnerabilities:
\`\`\`python
import subprocess
user_input = input()
subprocess.call(user_input, shell=True)
\`\`\`<|eot_id|><|start_header_id|>assistant<|end_header_id|>" -n 256
from llama_cpp import Llama
llm = Llama(
model_path="./coflux-ai-q8_0.gguf",
n_ctx=2048,
n_gpu_layers=-1,
)
# Security scanning
output = llm.create_chat_completion(
messages=[
{
"role": "system",
"content": "You are a security scanning module for a P2P collaboration system. Analyze code for vulnerabilities and respond with a risk assessment."
},
{
"role": "user",
"content": "Scan this code:\n```python\nimport os\nos.system(input('cmd: '))\n```"
}
],
temperature=0.1,
max_tokens=512,
)
print(output["choices"][0]["message"]["content"])
# Workflow - Summarization
output = llm.create_chat_completion(
messages=[
{
"role": "system",
"content": "You are a workflow automation module. Summarize the given content concisely."
},
{
"role": "user",
"content": "Summarize: The team discussed Q3 roadmap. Backend focuses on API optimization. Frontend is redesigning the dashboard. Security audit next week."
}
],
temperature=0.3,
max_tokens=256,
)
print(output["choices"][0]["message"]["content"])
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
# Load LoRA adapter (if available separately)
# model = PeftModel.from_pretrained(base_model, "path/to/adapter")
CoFlux AI operates within the P2P AI Bridge System:
┌─────────────────────────────────────────────────┐
│ 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) │ │ │
└─────────┘ └─────────┘
This model is designed with a privacy-first philosophy:
If you use CoFlux AI in your research or project, please cite:
@misc{coflux-ai-2025,
title={CoFlux AI: Edge Security and Workflow Model for P2P Collaboration},
author={Kim Donghwan},
year={2025},
url={https://huggingface.co/kimdonghwanAIengineer/coflux-ai-gguf}
}