Run this model with HF Jobs
Run LTP/small 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/LTP/small. 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/LTP/small 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 LTP/small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LTP/small with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LTP/small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Uploaded model
Browse filesFiles changed (3)
- config.jsonAdded+352
- pytorch_model.binAdded+3
- vocab.txtAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352{ "model": { "_ltp_target_": "ltp_core.models.ltp_model.LTPModule", "backbone": { "_ltp_target_": "ltp_core.models.utils.load_transformers", "config": { "output_attentions": false, "output_hidden_states": false, "use_cache": true, "torchscript": false, "use_bfloat16": false, "pruned_heads": {}, "is_encoder_decoder": false, "is_decoder": false, "max_length": 20, "min_length": 0, "do_sample": false, "early_stopping": false, "num_beams": 1, "temperature": 1.0, "top_k": 50, "top_p": 1.0, "repetition_penalty": 1.0, "length_penalty": 1.0, "no_repeat_ngram_size": 0, "bad_words_ids": null, "num_return_sequences": 1, "architectures": null, "finetuning_task": null, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "prefix": null, "bos_token_id": null, "pad_token_id": 0, "eos_token_id": null, "decoder_start_token_id": null, "task_specific_params": null, "xla_device": null, "directionality": "bidi", "vocab_size": 21128, "embedding_size": 128, "hidden_size": 256, "num_hidden_layers": 12, "num_attention_heads": 4, "intermediate_size": 1024, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "attention_probs_dropout_prob": 0.1, "max_position_embeddings": 512, "type_vocab_size": 2, "initializer_range": 0.02, "layer_norm_eps": 1e-12, "model_type": "electra" } }, "processor": { "cws": { "_ltp_target_": "ltp_core.models.processor.TokenOnly" }, "pos": { "_ltp_target_": "ltp_core.models.processor.WordsOnly" }, "ner": { "_ltp_target_": "ltp_core.models.processor.WordsOnly" }, "srl": { "_ltp_target_": "ltp_core.models.processor.WordsOnly" }, "dep": { "_ltp_target_": "ltp_core.models.processor.WordsWithHead" }, "sdp": { "_ltp_target_": "ltp_core.models.processor.WordsWithHead" } }, "heads": { "cws": { "_ltp_target_": "ltp_core.models.components.token.MLPTokenClassifier", "input_size": 256, "num_labels": 2, "dropout": 0.1 }, "pos": { "_ltp_target_": "ltp_core.models.components.token.MLPTokenClassifier", "input_size": 256, "num_labels": 27, "dropout": 0.1 }, "ner": { "_ltp_target_": "ltp_core.models.components.token.RelTransformerTokenClassifier", "input_size": 256, "num_labels": 13, "dropout": 0.1, "num_heads": 4, "num_layers": 2 }, "srl": { "_ltp_target_": "ltp_core.models.components.token.BiaffineTokenClassifier", "input_size": 256, "hidden_size": 300, "num_labels": 97, "dropout": 0.1, "use_crf": true }, "dep": { "_ltp_target_": "ltp_core.models.components.graph.BiaffineClassifier", "input_size": 256, "num_labels": 14, "dropout": 0.1, "arc_hidden_size": 500, "rel_hidden_size": 100 }, "sdp": { "_ltp_target_": "ltp_core.models.components.graph.BiaffineClassifier", "input_size": 256, "num_labels": 56, "arc_hidden_size": 600, "rel_hidden_size": 600 } } }, "nerual": true, "vocabs": { "cws": [ "B-W", "I-W" ], "pos": [ "n", "v", "wp", "u", "d", "a", "m", "p", "r", "ns", "c", "q", "nt", "nh", "nd", "j", "i", "b", "ni", "nz", "nl", "z", "k", "ws", "o", "h", "e" ], "ner": [ "O", "S-Ns", "S-Nh", "B-Ni", "E-Ni", "I-Ni", "S-Ni", "B-Ns", "E-Ns", "I-Ns", "B-Nh", "E-Nh", "I-Nh" ], "srl": [ "O", "B-A0", "B-A0-ADV", "B-A0-CND", "B-A0-CRD", "B-A0-MNR", "B-A0-PRD", "B-A0-PSE", "B-A0-PSR", "B-A0-QTY", "B-A1", "B-A1-CRD", "B-A1-DIS", "B-A1-FRQ", "B-A1-PRD", "B-A1-PSE", "B-A1-PSR", "B-A1-QTY", "B-A1-TPC", "B-A2", "B-A2-CRD", "B-A2-PRD", "B-A2-PSE", "B-A2-PSR", "B-A2-QTY", "B-A3", "B-A3-TMP", "B-A4", "B-ARGM-ADV", "B-ARGM-BNF", "B-ARGM-CND", "B-ARGM-CRD", "B-ARGM-DGR", "B-ARGM-DIR", "B-ARGM-DIS", "B-ARGM-EXT", "B-ARGM-FRQ", "B-ARGM-LOC", "B-ARGM-MNR", "B-ARGM-PRD", "B-ARGM-PRP", "B-ARGM-QTY", "B-ARGM-T", "B-ARGM-TMP", "B-ARGM-TPC", "B-rel-ADV", "B-rel-DIS", "B-rel-EXT", "B-rel-MNR", "I-A0", "I-A0-ADV", "I-A0-CND", "I-A0-CRD", "I-A0-MNR", "I-A0-PRD", "I-A0-PSE", "I-A0-PSR", "I-A0-QTY", "I-A1", "I-A1-CRD", "I-A1-DIS", "I-A1-FRQ", "I-A1-PRD", "I-A1-PSE", "I-A1-PSR", "I-A1-QTY", "I-A1-TPC", "I-A2", "I-A2-CRD", "I-A2-PRD", "I-A2-PSE", "I-A2-PSR", "I-A2-QTY", "I-A3", "I-A3-TMP", "I-A4", "I-ARGM-ADV", "I-ARGM-BNF", "I-ARGM-CND", "I-ARGM-CRD", "I-ARGM-DGR", "I-ARGM-DIR", "I-ARGM-DIS", "I-ARGM-EXT", "I-ARGM-FRQ", "I-ARGM-LOC", "I-ARGM-MNR", "I-ARGM-PRD", "I-ARGM-PRP", "I-ARGM-QTY", "I-ARGM-T", "I-ARGM-TMP", "I-ARGM-TPC", "I-rel-ADV", "I-rel-DIS", "I-rel-EXT", "I-rel-MNR" ], "dep": [ "ATT", "WP", "ADV", "VOB", "SBV", "COO", "RAD", "HED", "POB", "CMP", "LAD", "FOB", "DBL", "IOB" ], "sdp": [ "mDEPD", "mPUNC", "FEAT", "mRELA", "Root", "AGT", "eSUCC", "EXP", "MEAS", "eCOO", "CONT", "LOC", "DATV", "LINK", "PAT", "TIME", "dCONT", "SCO", "MANN", "mNEG", "ePREC", "dFEAT", "rEXP", "dEXP", "dTIME", "rCONT", "rAGT", "dLINK", "STAT", "REAS", "rPAT", "TOOL", "dSTAT", "dMANN", "rTIME", "rLOC", "dDATV", "rFEAT", "MATL", "rDATV", "dREAS", "dLOC", "rLINK", "dPAT", "rMANN", "rREAS", "rTOOL", "rMEAS", "dSCO", "dMEAS", "rSCO", "dAGT", "rMATL", "rSTAT", "dTOOL", "dMATL" ] }}123version https://git-lfs.github.com/spec/v1oid sha256:a64f412c8fc2181d228d1bea7da15f391dfe395f9073f97da250054f847869dcsize 179675533config.jsonAdded+352
pytorch_model.binAdded+3
vocab.txtAdded