zai-org / cogvlm2-llama3-chat-19B-tgi

huggingface.co
Total runs: 226
24-hour runs: 2
7-day runs: 15
30-day runs: 56
Model's Last Updated: June 08 2024
text-generation

Introduction of cogvlm2-llama3-chat-19B-tgi

Model Details of cogvlm2-llama3-chat-19B-tgi

CogVLM2

👋 Join us on WeChat

📍Experience the larger-scale CogVLM model on the ZhipuAI Open Platform .

Model introduction

We launch a new generation of CogVLM2 series of models and open source two models built with Meta-Llama-3-8B-Instruct . Compared with the previous generation of CogVLM open source models.

This is a TGI format model.

Quick Start

here is a simple example of how to use the model to chat with the CogVLM2 TGI model.

import requests
import json
import base64
import os


requests.packages.urllib3.disable_warnings()
BAD_RESPONSE = "<error></error>"
def image_to_base64(image_path):
    with open(image_path, "rb") as image_file:
        encoded_string = base64.b64encode(image_file.read())
        return encoded_string.decode('utf-8')

def history_to_prompt(query):
    answer_format = 'Answer:'
    prompt = ''
    prompt += 'Question: {} {}'.format(query, answer_format)
    return prompt

def get_response(image_path, question):
    image_extension = os.path.splitext(image_path)[1][1:]
    
    base64_img = image_to_base64(image_path)
    
    url = 'http://127.0.0.1:8080'
    headers = {
        'Content-Type': 'application/json',
    }

    prompt = history_to_prompt(question)
    payload = {
        "inputs": f"![](data:image/{image_extension};base64,{base64_img}){prompt}",
        "stream": False,
        "parameters": {
            "best_of": 1,
            "decoder_input_details": False,
            "details": False,
            "repetition_penalty": 1.1,
            "do_sample": True,
            "max_new_tokens": 1000,
            "return_full_text": False,
            "temperature": 0.8,
            "top_p": 0.4,
            "top_k": 1
        }
    }
    try_times = 0
    while try_times < 3:
        try_times += 1
        try:
            response = requests.post(url, headers=headers, stream=False, data=json.dumps(payload), verify=False)
            if response.status_code == 200:
                try:
                    output = response.json()[0]["generated_text"].strip()
                    return output
                except Exception as e:
                    pass
            else:
                print(f"Received bad status code: {response.status_code}")
        except requests.exceptions.ConnectionError as errc:
            print("Error Connecting:", errc)
        except requests.exceptions.Timeout as errt:
            print("Timeout Error:", errt)
        except requests.exceptions.RequestException as err:
            print("Something Else:", err)
    return BAD_RESPONSE
if __name__ == "__main__":
    from glob import glob
    files = glob("demo.jpeg")
    for file in files:
        print(file)
        print(get_response(
            image_path=file,
            question="who is this",
        ))
License

This model is released under the CogVLM2 LICENSE . For models built with Meta Llama 3, please also adhere to the LLAMA3_LICENSE .

Citation

If you find our work helpful, please consider citing the following papers

@misc{wang2023cogvlm,
      title={CogVLM: Visual Expert for Pretrained Language Models}, 
      author={Weihan Wang and Qingsong Lv and Wenmeng Yu and Wenyi Hong and Ji Qi and Yan Wang and Junhui Ji and Zhuoyi Yang and Lei Zhao and Xixuan Song and Jiazheng Xu and Bin Xu and Juanzi Li and Yuxiao Dong and Ming Ding and Jie Tang},
      year={2023},
      eprint={2311.03079},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Runs of zai-org cogvlm2-llama3-chat-19B-tgi on huggingface.co

226
Total runs
2
24-hour runs
18
3-day runs
15
7-day runs
56
30-day runs

More Information About cogvlm2-llama3-chat-19B-tgi huggingface.co Model

More cogvlm2-llama3-chat-19B-tgi license Visit here:

https://choosealicense.com/licenses/cogvlm2

cogvlm2-llama3-chat-19B-tgi huggingface.co

cogvlm2-llama3-chat-19B-tgi huggingface.co is an AI model on huggingface.co that provides cogvlm2-llama3-chat-19B-tgi's model effect (), which can be used instantly with this zai-org cogvlm2-llama3-chat-19B-tgi model. huggingface.co supports a free trial of the cogvlm2-llama3-chat-19B-tgi model, and also provides paid use of the cogvlm2-llama3-chat-19B-tgi. Support call cogvlm2-llama3-chat-19B-tgi model through api, including Node.js, Python, http.

cogvlm2-llama3-chat-19B-tgi huggingface.co Url

https://huggingface.co/zai-org/cogvlm2-llama3-chat-19B-tgi

zai-org cogvlm2-llama3-chat-19B-tgi online free

cogvlm2-llama3-chat-19B-tgi huggingface.co is an online trial and call api platform, which integrates cogvlm2-llama3-chat-19B-tgi's modeling effects, including api services, and provides a free online trial of cogvlm2-llama3-chat-19B-tgi, you can try cogvlm2-llama3-chat-19B-tgi online for free by clicking the link below.

zai-org cogvlm2-llama3-chat-19B-tgi online free url in huggingface.co:

https://huggingface.co/zai-org/cogvlm2-llama3-chat-19B-tgi

cogvlm2-llama3-chat-19B-tgi install

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

cogvlm2-llama3-chat-19B-tgi install url in huggingface.co:

https://huggingface.co/zai-org/cogvlm2-llama3-chat-19B-tgi

Url of cogvlm2-llama3-chat-19B-tgi

cogvlm2-llama3-chat-19B-tgi huggingface.co Url

Provider of cogvlm2-llama3-chat-19B-tgi huggingface.co

zai-org
ORGANIZATIONS

Other API from zai-org

huggingface.co

Total runs: 5.4M
Run Growth: 4.8M
Growth Rate: 90.17%
Updated:September 07 2026
huggingface.co

Total runs: 1.8M
Run Growth: -176.2K
Growth Rate: -9.66%
Updated:September 11 2026
huggingface.co

Total runs: 1.8M
Run Growth: -104.0K
Growth Rate: -5.84%
Updated:January 29 2026
huggingface.co

Total runs: 1.4M
Run Growth: 1.3M
Growth Rate: 89.31%
Updated:September 04 2026
huggingface.co

Total runs: 705.8K
Run Growth: -474.8K
Growth Rate: -66.84%
Updated:September 01 2026
huggingface.co

Total runs: 475.1K
Run Growth: -840.0K
Growth Rate: -168.02%
Updated:September 01 2026
huggingface.co

Total runs: 461.7K
Run Growth: 18.8K
Growth Rate: 4.07%
Updated:August 04 2024
huggingface.co

Total runs: 380.7K
Run Growth: 210.9K
Growth Rate: 65.25%
Updated:August 11 2025
huggingface.co

Total runs: 365.3K
Run Growth: 238.4K
Growth Rate: 77.79%
Updated:August 11 2026
huggingface.co

Total runs: 267.1K
Run Growth: 142.7K
Growth Rate: 62.34%
Updated:May 13 2026
huggingface.co

Total runs: 117.7K
Run Growth: 30.7K
Growth Rate: 26.44%
Updated:August 11 2025
huggingface.co

Total runs: 103.7K
Run Growth: 20.1K
Growth Rate: 19.60%
Updated:December 10 2025
huggingface.co

Total runs: 101.6K
Run Growth: 37.2K
Growth Rate: 36.35%
Updated:January 29 2026
huggingface.co

Total runs: 68.7K
Run Growth: -16.9K
Growth Rate: -23.93%
Updated:March 13 2025
huggingface.co

Total runs: 67.7K
Run Growth: -11.8K
Growth Rate: -17.43%
Updated:December 05 2024
huggingface.co

Total runs: 39.9K
Run Growth: -10.5K
Growth Rate: -26.27%
Updated:October 25 2025
huggingface.co

Total runs: 32.8K
Run Growth: 27.8K
Growth Rate: 85.57%
Updated:September 04 2026
huggingface.co

Total runs: 26.7K
Run Growth: -351.9K
Growth Rate: -1242.25%
Updated:April 16 2026
huggingface.co

Total runs: 21.0K
Run Growth: -723.4K
Growth Rate: -3437.18%
Updated:April 05 2026
huggingface.co

Total runs: 18.6K
Run Growth: 2.2K
Growth Rate: 12.08%
Updated:November 23 2024
huggingface.co

Total runs: 17.5K
Run Growth: 2.9K
Growth Rate: 15.82%
Updated:September 30 2025
huggingface.co

Total runs: 17.2K
Run Growth: -3.5K
Growth Rate: -20.19%
Updated:November 23 2024
huggingface.co

Total runs: 16.0K
Run Growth: -12.6K
Growth Rate: -78.55%
Updated:April 14 2025
huggingface.co

Total runs: 14.3K
Run Growth: -5.5K
Growth Rate: -38.53%
Updated:December 23 2025
huggingface.co

Total runs: 13.9K
Run Growth: -7.2K
Growth Rate: -51.09%
Updated:March 03 2025
huggingface.co

Total runs: 12.2K
Run Growth: 7.3K
Growth Rate: 60.25%
Updated:December 09 2025
huggingface.co

Total runs: 7.9K
Run Growth: -3.7K
Growth Rate: -47.03%
Updated:April 22 2025
huggingface.co

Total runs: 6.9K
Run Growth: 1.0K
Growth Rate: 13.94%
Updated:October 16 2025
huggingface.co

Total runs: 6.1K
Run Growth: -3.0K
Growth Rate: -49.11%
Updated:March 11 2025
huggingface.co

Total runs: 6.1K
Run Growth: -3.0K
Growth Rate: -47.08%
Updated:January 15 2026
huggingface.co

Total runs: 3.8K
Run Growth: -193
Growth Rate: -5.10%
Updated:December 09 2025
huggingface.co

Total runs: 3.0K
Run Growth: 1.8K
Growth Rate: 60.37%
Updated:August 12 2025
huggingface.co

Total runs: 3.0K
Run Growth: 255
Growth Rate: 8.54%
Updated:August 04 2024
huggingface.co

Total runs: 2.1K
Run Growth: -8.4K
Growth Rate: -395.14%
Updated:January 27 2025
huggingface.co

Total runs: 2.0K
Run Growth: -774
Growth Rate: -37.57%
Updated:October 25 2025
huggingface.co

Total runs: 991
Run Growth: 679
Growth Rate: 68.86%
Updated:October 20 2023
huggingface.co

Total runs: 500
Run Growth: 241
Growth Rate: 48.20%
Updated:December 10 2024
huggingface.co

Total runs: 458
Run Growth: -287
Growth Rate: -63.36%
Updated:August 11 2025
huggingface.co

Total runs: 416
Run Growth: -148
Growth Rate: -34.34%
Updated:March 02 2023
huggingface.co

Total runs: 398
Run Growth: -1.0K
Growth Rate: -256.46%
Updated:January 02 2025
huggingface.co

Total runs: 389
Run Growth: 152
Growth Rate: 39.07%
Updated:October 25 2025
huggingface.co

Total runs: 322
Run Growth: 26
Growth Rate: 8.31%
Updated:January 13 2026
huggingface.co

Total runs: 237
Run Growth: -34
Growth Rate: -14.35%
Updated:November 20 2023
huggingface.co

Total runs: 228
Run Growth: 16
Growth Rate: 7.05%
Updated:October 20 2023