Instructions to use thu-coai/CDial-GPT_LCCC-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thu-coai/CDial-GPT_LCCC-base with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("thu-coai/CDial-GPT_LCCC-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
load model error
#1
by wdkwdkwdk - opened
RuntimeError: Error(s) in loading state_dict for OpenAIGPTLMHeadModel:
size mismatch for transformer.h.0.attn.bias: copying a param with shape torch.Size([1, 1, 512, 512]) from checkpoint, the shape in current model is torch.Size([1, 1, 513, 513]).
size mismatch for transformer.h.1.attn.bias: copying a param with shape torch.Size([1, 1, 512, 512]) from checkpoint, the shape in current model is torch.Size([1, 1, 513, 513]).