GLM-4 모델 시리즈

GLM-4 모델 시리즈

GLM 은 Zhipu AI 가 개발한 LLM 계열이에요. GLM-4-0414 계열은 공식 저장소에서 모델 목록과 함께 공개돼 있고, 여기에는 베이스 모델·챗 모델·추론·코딩 등 다양한 변형이 있어요.

출처: https://github.com/zai-org/GLM-4

GLM-4 시리즈 구성

대표적인 오픈소스 모델로 GLM-4-9B 가 있어요. 표로 정리하면 이렇게 구분돼요.

모델 유형 시퀀스 길이(Seq Length) 다운로드
GLM-4-9B Base 8K Hugging Face · ModelScope

이 외에도 GLM-4-9B 를 기반으로 한 Chat(대화), Long(장컨텍스트), Reasoner(추론), Coding(코딩) 같은 파생 모델들이 시리즈로 나와요. 시퀀스 길이는 모델마다 다르니 카드에서 확인해요.

어디서 받나요

공식 배포처는 Hugging Face(zai-org/glm-4-9b)와 ModelScope(ZhipuAI/glm-4-9b)예요. 중국 오픈소스 모델답게 ModelScope 가 속도가 빠른 편이라, 중국 내 환경이라면 ModelScope 를 쓰는 게 편해요.

사용 예시 (transformers)

from transformers import AutoTokenizer, AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("zai-org/glm-4-9b", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("zai-org/glm-4-9b", trust_remote_code=True)

더 알아보기