Introduction to ggml

📰 Hugging Face Blog

Introduction to ggml, a machine learning library for Transformer inference

intermediate Published 13 Aug 2024
Action Steps
  1. Explore the ggml library on GitHub
  2. Understand the focus on Transformer inference
  3. Learn about the C and C++ implementation
  4. Check out the examples and documentation on the Hugging Face blog
Who Needs to Know This

Data scientists and machine learning engineers can benefit from ggml for efficient Transformer inference, while software engineers can appreciate its C and C++ implementation

Key Insight

💡 ggml is a lightweight library for efficient Transformer inference

Share This
💡 Discover ggml, a ML library for Transformer inference in C and C++

Key Takeaways

Introduction to ggml, a machine learning library for Transformer inference

Full Article

Published Time: 2024-08-13T00:00:00.440Z

# Introduction to ggml

[![Image 1: Hugging Face's logo](https://huggingface.co/front/assets/huggingface_logo-noborder.svg)Hugging Face](https://huggingface.co/)

* [Models](https://huggingface.co/models)
* [Datasets](https://huggingface.co/datasets)
* [Spaces](https://huggingface.co/spaces)
* [Buckets new](https://huggingface.co/storage)
* [Docs](https://huggingface.co/docs)
* [Enterprise](https://huggingface.co/enterprise)
* [Pricing](https://huggingface.co/pricing)
*
*
* * *

* [Log In](https://huggingface.co/login)
* [Sign Up](https://huggingface.co/join)

[Back to Articles](https://huggingface.co/blog)

# [](https://huggingface.co/blog/introduction-to-ggml#introduction-to-ggml) Introduction to ggml

Published August 13, 2024

[Update on GitHub](https://github.com/huggingface/blog/blob/main/introduction-to-ggml.md)

[- [x] Upvote 276](https://huggingface.co/login?next=%2Fblog%2Fintroduction-to-ggml)
* [![Image 2](https://cdn-avatars.huggingface.co/v1/production/uploads/5dd96eb166059660ed1ee413/NQtzmrDdbG0H8qkZvRyGk.jpeg)](https://huggingface.co/julien-c "julien-c")
* [![Image 3](https://cdn-avatars.huggingface.co/v1/production/uploads/5e0eed1ffcf41d740b699666/jJnkTB9wsP4QBcIRZqZFD.jpeg)](https://huggingface.co/blancsw "blancsw")
* [![Image 4](https://cdn-avatars.huggingface.co/v1/production/uploads/5f17f0a0925b9863e28ad517/fXIY5i9RLsIa1v3CCuVtt.jpeg)](https://huggingface.co/victor "victor")
* [![Image 5](https://cdn-avatars.huggingface.co/v1/production/uploads/5f43448a79c1ba4c353d0d8f/DiSygV3dn7A_OjmGVTrHD.jpeg)](https://huggingface.co/sugatoray "sugatoray")
* [![Image 6](https://cdn-avatars.huggingface.co/v1/production/uploads/6032802e1f993496bc14d9e3/w6hr-DEQot4VVkoyRIBiy.png)](https://huggingface.co/osanseviero "osanseviero")
* [![Image 7](https://cdn-avatars.huggingface.co/v1/production/uploads/1617264212503-603d25b75f9d390ab190b777.jpeg)](https://huggingface.co/pcuenq "pcuenq")
* +270

[![Image 8: Xuan-Son Nguyen's avatar](https://cdn-avatars.huggingface.co/v1/production/uploads/1674191139776-noauth.png)](https://huggingface.co/ngxson)

[Xuan-Son Nguyen ngxson Follow](https://huggingface.co/ngxson)

[![Image 9: Georgi Gerganov's avatar](https://cdn-avatars.huggingface.co/v1/production/uploads/63148d3b996c52bf0142cdbe/ec7pRNrQQy70d-11FiACq.jpeg)](https://huggingface.co/ggerganov)

[Georgi Gerganov ggerganov Follow](https://huggingface.co/ggerganov)

[![Image 10: ggml-org's avatar](https://cdn-avatars.huggingface.co/v1/production/uploads/63148d3b996c52bf0142cdbe/HXyNkyB0_nHI5WDNdiKHZ.png)](https://huggingface.co/ggml-org "ggml-org")[ggml-org](https://huggingface.co/ggml-org)

[![Image 11: slaren's avatar](https://huggingface.co/avatars/177f23fa72cf9161485deea2b73a2396.svg)](https://huggingface.co/slaren)

[slaren slaren Follow](https://huggingface.co/slaren)

[![Image 12: ggml-org's avatar](https://cdn-avatars.huggingface.co/v1/production/uploads/63148d3b996c52bf0142cdbe/HXyNkyB0_nHI5WDNdiKHZ.png)](https://huggingface.co/ggml-org "ggml-org")[ggml-org](https://huggingface.co/ggml-org)

* [Getting started](https://huggingface.co/blog/introduction-to-ggml#getting-started "Getting started")

* [Terminology and concepts](https://huggingface.co/blog/introduction-to-ggml#terminology-and-concepts "Terminology and concepts")

* [Simple example](https://huggingface.co/blog/introduction-to-ggml#simple-example "Simple example")

* [Example with a backend](https://huggingface.co/blog/introduction-to-ggml#example-with-a-backend "Example with a backend")

* [Printing the computational graph](https://huggingface.co/blog/introduction-to-ggml#printing-the-computational-graph "Printing the computational graph")

* [Conclusion](https://huggingface.co/blog/introduction-to-ggml#conclusion "Conclusion")

[ggml](https://github.com/ggerganov/ggml) is a machine learning (ML) library written in C and C++ with a focus on Transformer inference. The project
Read full article → ← Back to Reads

Related Videos

5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
What is Prompt Chaining Explained with Examples
What is Prompt Chaining Explained with Examples
VLR Software Training
7 Claude Features Only 1% of People Know About
7 Claude Features Only 1% of People Know About
Conor Martin
Kimi K3 by Moonshot AI Surpassed Claude Fable 5
Kimi K3 by Moonshot AI Surpassed Claude Fable 5
Dr Mehrdad Arashpour
Get expert perspectives on any problem with Gemini Gems | Google AI Professional Certificate
Get expert perspectives on any problem with Gemini Gems | Google AI Professional Certificate
Google Career Certificates
Learn to use AI as your strategic thought partner | Google AI Professional Certificate
Learn to use AI as your strategic thought partner | Google AI Professional Certificate
Google Career Certificates