Downloads · 30 days
13
14% of all-time downloads
sasa2000/glm-4.6v-flash-text-only
glm-4.6v-flash-text-only is a text generation model from sasa2000. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is a text-only extraction of zai-org/GLM-4.6V-Flash. It keeps the language model weights and tokenizer assets, and removes the vision/multimodal components.
Downloads · 30 days
13
14% of all-time downloads
All-time downloads
91
Public
Parameters
9.4B
18.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.8 GB · 100%
From the Hugging Face model README
This is a text-only extraction of zai-org/GLM-4.6V-Flash.
It keeps the language model weights and tokenizer assets, and removes the vision/multimodal components.
This repository is not an official ZhipuAI/zai-org release.
zai-org/GLM-4.6V-Flash411bb4d77144a3f03accbf4b780f5acb8b7cde4eglm4Glm4ForCausalLMsafetensorsThe original VLM config uses a multimodal glm4v architecture with a nested glm4v_text
language config. For text-only loading with Transformers AutoModelForCausalLM, the language
backbone was converted to a loadable glm4 CausalLM config.
Validated locally with Transformers:
AutoConfig.from_pretrained(...) loads as Glm4ConfigAutoTokenizer.from_pretrained(...) loads successfullyAutoModelForCausalLM.from_pretrained(..., torch_dtype="auto", low_cpu_mem_usage=True) loads as Glm4ForCausalLM(1, 1, 151552)model.safetensors.index.jsonimport torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "sasa2000/glm-4.6v-flash-text-only"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
inputs = tokenizer("Explain why the sky looks blue.", return_tensors="pt").to(model.device)
with torch.no_grad():
output_ids = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
This checkpoint is text-only. Image and video inputs are not supported because the vision encoder, multimodal projector, and related preprocessing assets were removed.
Please review the upstream model card and license for the original model's intended use, limitations, and terms.