Run this model with HF Jobs

Run zai-org/chatglm-6b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/zai-org/chatglm-6b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/zai-org/chatglm-6b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

about self.scaled_masked_softmax in modeling_chatglm.py

#91
by shl97 - opened

what's the meaning and definition of self.scaled_masked_softmax in modeling_chatglm.py
in 300-302 lines
if self.scale_mask_softmax:
self.scale_mask_softmax.scale = query_key_layer_scaling_coeff
attention_probs = self.scale_mask_softmax(attention_scores, attention_mask.contiguous())
self.scaled_masked_softmax has attribute scale and can be used as a function, but it only appears in line 378 as self.scale_mask_softmax = None

Sign up or log in to comment