internlm / internlm2_5-7b-chat-gguf

huggingface.co
Total runs: 363
24-hour runs: 0
7-day runs: 18
30-day runs: 69
Model's Last Updated: Juillet 16 2024
text-generation

Introduction of internlm2_5-7b-chat-gguf

Model Details of internlm2_5-7b-chat-gguf

InternLM2.5-7B-Chat GGUF Model

Introduction

The internlm2_5-7b-chat model in GGUF format can be utilized by llama.cpp , a highly popular open-source framework for Large Language Model (LLM) inference, across a variety of hardware platforms, both locally and in the cloud. This repository offers internlm2_5-7b-chat models in GGUF format in both half precision and various low-bit quantized versions, including q5_0 , q5_k_m , q6_k , and q8_0 .

In the subsequent sections, we will first present the installation procedure, followed by an explanation of the model download process. And finally we will illustrate the methods for model inference and service deployment through specific examples.

Installation

We recommend building llama.cpp from source. The following code snippet provides an example for the Linux CUDA platform. For instructions on other platforms, please refer to the official guide .

  • Step 1: create a conda environment and install cmake
conda create --name internlm2 python=3.10 -y
conda activate internlm2
pip install cmake
  • Step 2: clone the source code and build the project
git clone --depth=1 https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j

All the built targets can be found in the sub directory build/bin

In the following sections, we assume that the working directory is at the root directory of llama.cpp .

Download models

In the introduction section , we mentioned that this repository includes several models with varying levels of computational precision. You can download the appropriate model based on your requirements. For instance, internlm2_5-7b-chat-fp16.gguf can be downloaded as below:

pip install huggingface-hub
huggingface-cli download internlm/internlm2_5-7b-chat-gguf internlm2_5-7b-chat-fp16.gguf --local-dir . --local-dir-use-symlinks False
Inference

You can use llama-cli for conducting inference. For a detailed explanation of llama-cli , please refer to this guide

chat example
build/bin/llama-cli \
    --model internlm2_5-7b-chat-fp16.gguf  \
    --predict 512 \
    --ctx-size 4096 \
    --gpu-layers 32 \
    --temp 0.8 \
    --top-p 0.8 \
    --top-k 50 \
    --seed 1024 \
    --color \
    --prompt "<|im_start|>system\nYou are an AI assistant whose name is InternLM (书生·浦语).\n- InternLM (书生·浦语) is a conversational language model that is developed by Shanghai AI Laboratory (上海人工智能实验室). It is designed to be helpful, honest, and harmless.\n- InternLM (书生·浦语) can understand and communicate fluently in the language chosen by the user such as English and 中文.<|im_end|>\n" \
    --interactive \
    --multiline-input \
    --conversation \
    --verbose \
    --logdir workdir/logdir \
    --in-prefix "<|im_start|>user\n" \
    --in-suffix "<|im_end|>\n<|im_start|>assistant\n"
Function call example

llama-cli example:

build/bin/llama-cli \
    --model internlm2_5-7b-chat-fp16.gguf \
    --predict 512 \
    --ctx-size 4096 \
    --gpu-layers 32 \
    --temp 0.8 \
    --top-p 0.8 \
    --top-k 50 \
    --seed 1024 \
    --color \
    --prompt '<|im_start|>system\nYou are InternLM2-Chat, a harmless AI assistant.<|im_end|>\n<|im_start|>system name=<|plugin|>[{"name": "get_current_weather", "parameters": {"required": ["location"], "type": "object", "properties": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"}, "unit": {"type": "string"}}}, "description": "Get the current weather in a given location"}]<|im_end|>\n<|im_start|>user\n' \
    --interactive \
    --multiline-input \
    --conversation \
    --verbose \
    --in-suffix "<|im_end|>\n<|im_start|>assistant\n" \
    --special

Conversation results:

<s><|im_start|>system
You are InternLM2-Chat, a harmless AI assistant.<|im_end|>
<|im_start|>system name=<|plugin|>[{"name": "get_current_weather", "parameters": {"required": ["location"], "type": "object", "properties": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"}, "unit": {"type": "string"}}}, "description": "Get the current weather in a given location"}]<|im_end|>
<|im_start|>user

> I want to know today's weather in Shanghai
I need to use the get_current_weather function to get the current weather in Shanghai.<|action_start|><|plugin|>
{"name": "get_current_weather", "parameters": {"location": "Shanghai"}}<|action_end|>
<|im_end|>

> <|im_start|>environment name=<|plugin|>\n{"temperature": 22}
The current temperature in Shanghai is 22 degrees Celsius.<|im_end|>

> 
Serving

llama.cpp provides an OpenAI API compatible server - llama-server . You can deploy internlm2_5-7b-chat-fp16.gguf into a service like this:

./build/bin/llama-server -m ./internlm2_5-7b-chat-fp16.gguf -ngl 32

At the client side, you can access the service through OpenAI API:

from openai import OpenAI
client = OpenAI(
    api_key='YOUR_API_KEY',
    base_url='http://localhost:8080/v1'
)
model_name = client.models.list().data[0].id
response = client.chat.completions.create(
  model=model_name,
  messages=[
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": " provide three suggestions about time management"},
  ],
  temperature=0.8,
  top_p=0.8
)
print(response)

Runs of internlm internlm2_5-7b-chat-gguf on huggingface.co

363
Total runs
0
24-hour runs
0
3-day runs
18
7-day runs
69
30-day runs

More Information About internlm2_5-7b-chat-gguf huggingface.co Model

More internlm2_5-7b-chat-gguf license Visit here:

https://choosealicense.com/licenses/apache-2.0

internlm2_5-7b-chat-gguf huggingface.co

internlm2_5-7b-chat-gguf huggingface.co is an AI model on huggingface.co that provides internlm2_5-7b-chat-gguf's model effect (), which can be used instantly with this internlm internlm2_5-7b-chat-gguf model. huggingface.co supports a free trial of the internlm2_5-7b-chat-gguf model, and also provides paid use of the internlm2_5-7b-chat-gguf. Support call internlm2_5-7b-chat-gguf model through api, including Node.js, Python, http.

internlm2_5-7b-chat-gguf huggingface.co Url

https://huggingface.co/internlm/internlm2_5-7b-chat-gguf

internlm internlm2_5-7b-chat-gguf online free

internlm2_5-7b-chat-gguf huggingface.co is an online trial and call api platform, which integrates internlm2_5-7b-chat-gguf's modeling effects, including api services, and provides a free online trial of internlm2_5-7b-chat-gguf, you can try internlm2_5-7b-chat-gguf online for free by clicking the link below.

internlm internlm2_5-7b-chat-gguf online free url in huggingface.co:

https://huggingface.co/internlm/internlm2_5-7b-chat-gguf

internlm2_5-7b-chat-gguf install

internlm2_5-7b-chat-gguf is an open source model from GitHub that offers a free installation service, and any user can find internlm2_5-7b-chat-gguf on GitHub to install. At the same time, huggingface.co provides the effect of internlm2_5-7b-chat-gguf install, users can directly use internlm2_5-7b-chat-gguf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

internlm2_5-7b-chat-gguf install url in huggingface.co:

https://huggingface.co/internlm/internlm2_5-7b-chat-gguf

Url of internlm2_5-7b-chat-gguf

internlm2_5-7b-chat-gguf huggingface.co Url

Provider of internlm2_5-7b-chat-gguf huggingface.co

internlm
ORGANIZATIONS

Other API from internlm

huggingface.co

Total runs: 21.4K
Run Growth: -29.4K
Growth Rate: -137.33%
Updated:Mars 29 2026
huggingface.co

Total runs: 2.8K
Run Growth: 2.2K
Growth Rate: 78.75%
Updated:Juillet 03 2024
huggingface.co

Total runs: 327
Run Growth: 35
Growth Rate: 10.70%
Updated:Avril 16 2026
huggingface.co

Total runs: 123
Run Growth: 91
Growth Rate: 73.98%
Updated:Octobre 23 2025