惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Affairs
S
Schneier on Security
T
Tenable Blog
G
GRAHAM CLULEY
Latest news
Latest news
D
Darknet – Hacking Tools, Hacker News & Cyber Security
A
Arctic Wolf
I
Intezer
Cyberwarzone
Cyberwarzone
T
The Exploit Database - CXSecurity.com
T
Tailwind CSS Blog
K
Kaspersky official blog
Blog — PlanetScale
Blog — PlanetScale
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Threat Research - Cisco Blogs
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
博客园 - 叶小钗
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Commits to openclaw:main
Recent Commits to openclaw:main
P
Palo Alto Networks Blog
WordPress大学
WordPress大学
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
The Cloudflare Blog
Help Net Security
Help Net Security
罗磊的独立博客
博客园 - 聂微东
Jina AI
Jina AI
Project Zero
Project Zero
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LINUX DO - 最新话题
V
V2EX
人人都是产品经理
人人都是产品经理
美团技术团队
博客园 - 【当耐特】
Spread Privacy
Spread Privacy
J
Java Code Geeks
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Security Latest
Security Latest
The Last Watchdog
The Last Watchdog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
S
Securelist
Forbes - Security
Forbes - Security
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
P
Privacy International News Feed
宝玉的分享
宝玉的分享
C
CERT Recently Published Vulnerability Notes

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - AronDaron/dataset-generator: No-code desktop app for generating high-quality synthetic datasets to fine-tune LLMs — plan-then-execute pipeline, LLM-as-judge, HuggingFace upload. GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace GitHub - Nyquest-ai/nyquest-rust-fullstack-pub: Nyquest — Semantic Compression Proxy for LLMs. 350+ rules, local LLM stage, 15-75% token savings. Full Rust stack. GitHub - TheoV823/mneme: Enforce architectural decisions in AI-assisted development. GitHub - klemenvod/TokenBrawl: A 1v1 Bomberman-style game where two LLM agents play autonomously against each other. No human plays — you watch the AIs fight. Each agent receives a text description of the board state, reasons about it, and outputs a move as JSON. The game engine executes it. Introducing the Common AI Provider: LLM and AI Agent Support for Apache Airflow Power Circuit AI: Designing Power Electronic Circuits for Motor Drives with Generative Artificial Intelligence Ask HN: How to program with IDE and LLM on CPU locally? Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Bonsai 1-bit WebGPU - a Hugging Face Space by webml-community The LLM Fallacy: Misattribution in AI-Assisted Cognitive Workflows Ask HN: Simple tooling for local LLM code critique without IDE integration? Can a General LLM Diagnose a DICOM Slice? A 10-Case Public Benchmark Charts-of-Thought: Enhancing LLM Visualization Literacy (PDF, 2026) GitHub - Mesh-LLM/mesh-llm: Distributed AI/LLM for the people. Share compute privately or publicly to power your agents and chat. GitHub - seamus-brady/springdrift: A persistent runtime for long-lived LLM agents Writing an LLM from scratch, part 32k -- Interventions: training a better model locally with gradient accumulation Ask HN: Which LLM model and agentic CLI are you using for local development? GitHub - wayneColt/modelcascade: Route local. Escalate smart. Never overspend. Open-source multi-model cascade routing for autonomous agents. LLM pricing is 100x harder than you think GitHub - asakin/llm-primer: Pre-warmed Claude Code sessions in tmux. No startup wait. GitHub - EggerMarc/chat-rs: A multi-provider LLM framework for Rust. GitHub - SynapseKit/SynapseKit: Minimal, async-first Python framework for production LLM apps- 2 hard deps, no magic, no SaaS. A Claude Skill that Makes LLM Paragraphs More Bearable Does Gas Town 'steal' usage from users' LLM credits & paid services to improve itself? What's Claude Code Actually Doing? Open the Black Box with the Arthur Engine Milla Jovovich's New Open Source LLM Memory App and the Dark Code Problem Your intuition of LLM token usage might be wrong Show HN: Bloomberg Terminal for LLM ops – free and open source GitHub - 0xchamin/mcptube: Transform YouTube videos into a compounding knowledge base with transcripts, vision analysis, and agentic search. Works as an MCP server for Claude, Copilot & more. Show HN: Open KB: Open LLM Knowledge Base Your LLM is a compiler, not a runtime GitHub - sapountzis/Unslop: A Web Feed That Deserves You crates.io: Rust Package Registry Beyond Karpathy's LLM-Wiki: The Necessity of Cognitive Governance GitHub - amitshekhariitbhu/llm-internals: Learn LLM internals step by step - from tokenization to attention to inference optimization. GitHub - parallem-ai/parallem: An expressive library for running agents with the Batch API. GitHub - stfurkan/pi-llm LLM-Wiki Show HN: Formal – Formal verification for AI-generated code using Lean 4 LRTS – Regression testing for LLM prompts (open source, local-first) LLM Wiki Skill: Build a Second Brain with Claude Code and Obsidian I built an LLM Wiki and RAG solution: here's a demo for a security KB The biggest advance in AI since the LLM Predict-Rlm: The LLM Runtime That Lets Models Write Their Own Control Flow the-synthetic-library/the-synthetic-mind at main · joshferrer1/the-synthetic-library GitHub - yisding/reviewwiggum GitHub - Donnyb369/mcp-spine: Context Minifier & State Guard — Local-first MCP middleware proxy GitHub - Beledarian/wgpu-llm: A from-scratch LLM inference engine that uses wgpu (the cross-platform WebGPU implementation) to dispatch WGSL compute shaders for every math operation a Transformer needs. No CUDA. No Python. No massive framework dependencies. Just Rust, raw shaders, and your GPU. GitHub - anitiue/Hindsight: An experience-driven self-improvement framework for LLM agents — 基于经验的 LLM Agent 自我改进框架 GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. GitHub - alainnothere/AmdPerformanceTesting: Amd Performance Testing Ask HN: Is a purely Markdown-based CRM a terrible idea? Optimized for LLM agents Context Engineering - LLM Memory and Retrieval for AI Agents | Weaviate little_helper_tui/letter.md at main · sleepyeldrazi/little_helper_tui GitHub - EvanZhouDev/umr: The Unified Model Registry for all your local AI apps. GitHub - JordanCT/VigIA-Orchestrator Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain A Taxonomy of RL Environments for LLM Agents Llama LLM Network Feture GitHub - genedeng-ca/ai-mac-migration: AI-powered Mac-to-Mac migration tool - replace Apple Migration Assistant with intelligent, selective transfer using local LLMs GitHub - lunargate-ai/gateway: High-performance self-hosted AI gateway (OpenAI-compatible) with routing, retries, and streaming GitHub - AuthBits/webmcp: A lightweight, prompt-driven MCP web research server for high-quality LLM powered information extraction. Externalization in LLM Agents: A Unified Review of Memory, Skills, Protocols and Harness Engineering Springdrift: An Auditable Persistent Runtime for LLM Agents with Case-Based Memory, Normative Safety, and Ambient Self-Perception High-Stakes Personalization: Rethinking LLM Customization for Individual Investor Decision-Making From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents HUOZIIME: An On-Device LLM-enhanced Input Method for Deep Personalization TIDE: Token-Informed Depth Execution for Per-Token Early Exit in LLM Inference Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browsers LLM Targeted Underperformance Disproportionately Impacts Vulnerable Users
Llama.cpp - Run LLM Inference in C/C++
Llama cpp · 2026-06-14 · via Hacker News - Newest: "LLM"

Llama-cpp

Llama.cpp (LLaMA C++) allows you to run efficient Large Language Model Inference in pure C/C++. You can run any powerful artificial intelligence model including all LLaMa models, Falcon and RefinedWeb, Mistral models, Gemma from Google, Phi, Qwen, Yi, Solar 10.7B and Alpaca.

You do not need to pay to use Llama.cpp or buy a subscription. It is completely free, open-source, constantly updated and available under the “MIT” license.

Zero External Dependences

Navigation

About Llama.cpp

Author and Development

Llama.cpp was created by Georgi Gerganov (@ggerganov) who is a software engineer based out of Bulgaria. Georgi developed llama.cpp shorty after Meta released its LLaMA models so users can run them on everyday consumer hardware as well without the need of having expensive GPUs or cloud infrastructure.

This became one of the most influential and impactful open-source AI projects on GitHub. Georgi’s focus on extreme optimization, minimal dependencies and usability resonated with developers around the world. He also created the ggml tensor library which powers llama.cpp but also other machine learning projects as well. His work on quantization techniques, specifically the k-quants system has been groundbreaking in making large language models accessible to everyone.

The project has now grown into a massive success, has a lovely community and many contributors. Visit Georgi’s GitHub profile and explore his other projects including whisper.cpp (speech-to-text) and other innovative tools.

This website is an unofficial website built for informational purposes only.

Features

Built in C/C++

Built entirely in pure C/C++ with no external dependencies. This means that Llama.cpp requires no Python runtime, no complex dependency chains resulting in no version conflicts over time. The entire codebase currently combines to only a single binary that you can run pretty much anywhere. This includes high-end servers or a Raspberry Pi device.

Hardware Acceleration

Hardware acceleration is supported by Llama.cpp on all major platforms available today. It works on Apple’s new M1/M2/M3/M4 chips, leverages Metal for GPU compute with the unified architecture. AMD and Intel CPUs also benefit from optimized AVX, AVX2 and AVX512 SIMD instructions. Nvidia GPUs use CUDA with support for compute with tensor cores. AMD GPUs work with ROCm with the help of optimized kernels.

Quantization Support

Llama.cpp includes top-notch quantization capabilities with different levels of precision 2-bit to 8-bit. The k-quants system (Q4_K_M, Q5_K_S, Q6_K and so on) incorporates block-wise quantization which also helps preserve model quality while dramatically reducing memory footprint. For example, a 7B parameter that would typically require 14 GB to run would be able to run with just 4 GB with 4-bit quantization.

OpenAI Compatible API

It comes with a built-in HTTP server that implements OpenAI’s API specifications. This makes Llama.cpp a worthy drop-in replacement for OpenAI API calls. It supports the following endpoints which include /v1/completions, /v1/chat/completions, /v1/embedding in the same request and response format.

Use Multiple Interfaces

Enjoy access via multiple interfaces so you can adapt various types of workloads. The CLI interface provides you with direct model LLM interaction with full control on the parameters. The interactive chat mode offers a conversational experience with persistent context and multi-turn dialogues. The built-in HTTP/Rest server allows integration with any programming language or tool.

Multi-Model Architecture Support

Experience comprehensive model architecture support covering the entire landscape of available LLMs. New architectures are constantly added as they are released allowing you to experiment with different models without changing your underlying infrastructure. You can also compare performance between different model architectures.

Privacy Focused

You have complete control over data sovereignty as it gives you local execution. All the tokens processed stay on your hardware where you run it no data is sent to any external servers. This may help users who are more privacy and security focused and want to process confidential business documents, personal information or even medical records along with legal documents.

Memory Friendly

Llama.cpp utilizes advanced memory optimization techniques that allow you to run larger models on older hardware with lower specifications. Memory mapping loads the models directly from disk without the need to copy them to RAM which reduces memory requirements by the model size. KV cache quantization applies 8-bit or lower precision to the key-value cache, cutting memory usage by up to 50% on average during generation.

Advanced Sampling

It has sophisticated text generation controls that allow you to fine-tune output style and quality. Temperature controls randomness 0.1 for focused and 1.0 for creative. Top-p nucleus sampling dynamically adjusts the token pool based on probability mass. Top-k limits selection to k most likely tokens. Repeat penalty prevents repetitive text by penalizing recently used tokens.

Why choose Llama.cpp?

Open-Source and Free

MIT licensed and free to use, modify and distribute makes it an ideal choice. It also has an active community of thousands of contributors and is updated constantly.

You are in Control

You can get fine-grained control over your inference parameters. You can also adjust memory usage, speed and the quality so it directly matches your requirements.

Top Performance

Highly optimized inference code with assembly-level optimizations. This achieves optimal performance on CPU and GPU hardware with minimal overhead.

How It Works

1. Load the LLM Models:

Download any pre-trained models in the GGUF format (or convert your own if possible from PyTorch or SafeTensor formats). LLM models are typically between 2-10 GB in practical sizes for like 7B-13B parameters.

The GGUF format includes all the of necessary metadata, tokenizer information and model weights in a single portable file.

2. Optimize the Execution:

llama.cpp is capable of automatically detecting your hardware including CPU features and available GPU(s) and thus configures optimal execution paths using SIMD instructions and GPU kernels.

The engine automatically selects the best quantization kernels for your processor, determines how many layers to offload to GPU if available and configures memory mapping too.

3. Run your Inference:

Process prompts through the model using quantized weights and optimized attention mechanisms. You can generate responses in real-time! The system maintains a key-value cache for efficient multi-turn conversations, streams tokens as they are generated for responsive user experiences and applies your chosen sampling parameters to control the output quality.

You can always adjust temeprature, penalties and other such settings on the go for tuning generation behavior for specific use cases.

Technologies and Architecture

ggml Tensor Library

This is a core computational engine built on ggml, a custom tensor library written in C that provides you with efficient operations for ML inference with minimal dependencies.

SIMD Optimization

This is hand-tuned assembly using AVX, AVX2, AVX512 and NEON instruction sets for maximum CPU throughput on matrix operations and other attention mechanisms.

GPU Compute APIs

llama.cpp has native integration with CUDA, ROCm from AMD, Vulkan, Opencl and SYCL for accelerated inference.

KV Cache Management

Complex key-value cache which has quantization support that allows for efficient memory usage during long context generation runs and conversations.

Build Systems

llama.cpp’s support for CMake, Make and various platform-specific build tools is top-notch. You have easy compilation across Linux, macOS, Android and Windows 10/11.

System Requirements

  • Minimum Requirements

  • Recommended Setup

  • Supported Platforms

  • Acceleration Options

  • C++11 compatible compiler
  • 4GB RAM (for small LLM models)
  • Any modern CPU
  • Linux, macOS, or Windows
  • 16GB+ RAM
  • Modern CPU with AVX2
  • NVIDIA/AMD GPU (optional)
  • SSD for model storage
  • Linux (x86, ARM)
  • macOS (Intel & Apple Silicon)
  • Windows (x86)
  • Android, iOS, FreeBSD
  • NVIDIA CUDA (compute 6.0+)
  • AMD ROCm
  • Apple Metal
  • Vulkan, OpenCL, SYCL

Core Dependencies

  • Essential

  • Optional Acceleration

  • Build Tools

  • C++11 compiler (GCC, Clang and MSVC)
  • Standard C++ library
  • No external runtime dependencies
  • CUDA Toolkit from Nvidia
  • ROCm from AMD
  • Vulkan SDK
  • Intel oneAPI (SYCL)
  • CMake 3.14+
  • Make/Ninja
  • Platform SDK

Frequently Asked Questions

Below are frequently asked questions about llama.cpp that are usually asked by the users. We hope these answer all of your outstanding questions regarding running LLM inference using llama.cpp.

What is Llama.cpp?

Llama.cpp is a inference engine written in C/C++ that allows you to run large language models (LLMs) directly on your own hardware compute. It was originally created to run Meta’s LLaMa models on consumer-grade compute but later evolved into becoming the standard of local LLM inference.

Is Llama.cpp Free?

Llama.cpp is open-source and available to everyone to download and use for free. You do not need a subscription to use it or buy it to use it on your hardware due to it being distributed under the “MIT” license.

What models can I run with Llama.cpp?

Llama.cpp supports a wide range of model architectures which includes Llama 1, 2 and 3, Mistral, Phi, Gemma, Yi, DeepSeek, Qwen, Solar, Alpaca and StableLM. This also includes any LLM model available in the GGUF format.

How much memory do I need to run Llama.cpp?

How much memory you need will always depend and vary by model size and the quantization level. A 7B parameter model in a 4-bit quantization requires approximately 5 GB of RAM. 13B models would need 9-10 GB and 70B models around 40-45 GB in 4-bit.

What is quantization and why it matters?

Quantization reduces the precision of model weights from 16-bit floats to lower bit representations usually 8-bit and 4-bit etc. This helps in reducing memory usage and increases inference speed with little loss in quality. For example, 4-bit quantization can reduce a model size by around 70-75% while maintaining most of its capabilities. Llama.cpp supports multiple quantization formats optimized for different hardware.

Is a GPU always required to use Llama.cpp?

Llama.cpp also runs fine on CPU-only hardware. However, GPU acceleration does significantly improve inference speed. The software supports Nvidia GPUs (CUDA), AMD GPUs (ROCm), Apple Silicon (Metal) and other Vulkan-compatible GPUs.

Can I convert models to GGUF format easily so I can use them with Llama.cpp?

Llama.cpp includes Python scripts to convert models from various formats (PyTorch, SafeTensors) to GGUF. The popular models are available pre-quantized on Hugging Face. Simply download the GGUF file and you are ready to use it.

Is Llama.cpp production ready?

Llama.cpp is already ready to be used in production environments and is being used by various companies world wide to run LLMs locally. The built-in server provides an OpenAI-compatible API which makes integration very simple. Due to the MIT license which allows commercial use without restrictions many applications and even services are built using llama.cpp.

Is Llama.cpp inference much faster compared to other Python frameworks?

Generally Llama.cpp outperforms Python-based frameworks by a significant margin especially on CPU. Being written in C/C++ with extensive optimization and SIMD instructions results in it being 3-8x faster inference depending on hardware.

Is Llama cpp available on Windows?

Llama.cpp fully supports Windows. There are pre-built binaries available for easy installation or you can also compile from source using Visual Studio or MinGW. GPU accelerations via CUDA and Vulkan works well on Windows as well the same as Linux.

Is Model fine-tuning possible with llama.cpp?

Llama.cpp is mainly designed for inference not for model training or tuning. However, you can possible use the “finetune” example for basic fine-tune tasks. PyTorch can be used for more serious fine-tuning tasks.