Instructions to use zai-org/chatglm2-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm2-6b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm2-6b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
apply_query_key_layer_scaling 的用途是什么呢
#78
by yywind - opened
apply_query_key_layer_scaling 这个参数是是什么意思呢?为什么要对 query_key_layer 做缩放呢?不做缩放可能会导致哪些后果呢? 而且为什么缩放的值是layer_id
同问