glm4-9b

PyTorch

1 versions

A strong multi-lingual general language model with competitive performance to Llama 3.

Run this model

  1. Install our magic package manager:

    curl -ssL https://magic.modular.com/ | bash

    Then run the source command that's printed in your terminal.

  2. Install Max Pipelines in order to run this model.

    magic global install max-pipelines
  3. Start a local endpoint for glm4/9b:

    max-serve serve --huggingface-repo-id THUDM/glm-4-9b-chat

    The endpoint is ready when you see the URI printed in your terminal:

    Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
  4. Now open another terminal to send a request using curl:

    curl -N http://0.0.0.0:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
        "model": "glm4/9b",
        "stream": true,
        "messages": [
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Who won the World Series in 2020?"}
        ]
    }' | grep -o '"content":"[^"]*"' | sed 's/"content":"//g' | sed 's/"//g' | tr -d '
    ' | sed 's/\n/
    /g'
  5. 🎉 Hooray! You’re running Generative AI. Our goal is to make this as easy as possible.

About

In the evaluation of datasets across semantics, mathematics, reasoning, code, and knowledge, this model demonstrates superior performance, even surpassing Llama 3 8B. It sets a new benchmark with its robust capabilities, making it a state-of-the-art solution in these domains.

The model represents the latest generation and includes support for 26 languages, such as Japanese, Korean, and German, enhancing its usability across diverse linguistic contexts. This multilingual proficiency underscores its adaptability and effectiveness for a global audience.

References

GitHub

Hugging Face

DETAILS

MODEL CLASS
PyTorch

MODULAR GITHUB

Modular

CREATED BY

THUDM

MODEL

THUDM/glm-4-9b-chat

TAGS

arxiv:2406.12793
chatglm
custom_code
en
glm
license:other
region:us
safetensors
thudm
transformers
zh

@ Copyright - Modular Inc - 2024