Run this model with HF Jobs
Run jupiterjjj/LawGLM3 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/jupiterjjj/LawGLM3. 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/jupiterjjj/LawGLM3 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.
Instructions to use jupiterjjj/LawGLM3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jupiterjjj/LawGLM3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="jupiterjjj/LawGLM3", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jupiterjjj/LawGLM3", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from jupiterjjj/LawGLM3: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/jupiterjjj/LawGLM3/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://jupiterjjj/LawGLM3/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/jupiterjjj/LawGLM3/resolve/main/tokenizer_config.json
1.59 kB
| { | |
| "added_tokens_decoder": { | |
| "64790": { | |
| "content": "[gMASK]", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": false | |
| }, | |
| "64792": { | |
| "content": "sop", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": false | |
| }, | |
| "64795": { | |
| "content": "<|user|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": false | |
| }, | |
| "64796": { | |
| "content": "<|assistant|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": false | |
| } | |
| }, | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_chatglm.ChatGLMTokenizer", | |
| null | |
| ] | |
| }, | |
| "chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ system_message + '\\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ 'Human: ' + content + '\\nAssistant: ' }}{% elif message['role'] == 'assistant' %}{{ content + '</s>' + '\\n' }}{% endif %}{% endfor %}", | |
| "clean_up_tokenization_spaces": false, | |
| "do_lower_case": false, | |
| "eos_token": "</s>", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<unk>", | |
| "padding_side": "left", | |
| "remove_space": false, | |
| "split_special_tokens": false, | |
| "tokenizer_class": "ChatGLMTokenizer", | |
| "unk_token": "<unk>" | |
| } | |