Instructions to use ShengbinYue/DISC-LawLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ShengbinYue/DISC-LawLLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ShengbinYue/DISC-LawLLM", trust_remote_code=True, device_map="auto")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ShengbinYue/DISC-LawLLM", trust_remote_code=True, dtype="auto", device_map="auto") - Notebooks
- Google Colab
- Kaggle
运行配置?
#7
by wind-hate - opened
感觉很大啊,我下载了33%用了20多个G,Downloading shards: 33%|███▎ | 1/3 [12:02<24:05, 722.90s/it] ,不知到需要什么样的配置能运行起来,本地我的是4060显卡。。。麻烦看到望解答
如果想要在26G显存的卡是运行,请使用int4或者8量化推理