Run this model with HF Jobs
Run EasonShen/task2 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/EasonShen/task2. 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/EasonShen/task2 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 EasonShen/task2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EasonShen/task2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="EasonShen/task2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("EasonShen/task2") model = AutoModelForTokenClassification.from_pretrained("EasonShen/task2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload GPT2ForTokenClassification
Browse filesFiles changed (2)
- config.jsonAdded+51
- model.safetensorsAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "_name_or_path": "./task2", "activation_dropout": 0.0, "activation_function": "gelu_new", "architectures": [ "GPT2ForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "attn_pdrop": 0.1, "bos_token_id": 0, "embd_pdrop": 0.1, "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2" }, "initializer_range": 0.02, "intermediate_size": 4096, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2 }, "layer_norm_eps": 1e-12, "layer_norm_epsilon": 1e-05, "layerdrop": 0.0, "model_type": "gpt2", "n_embd": 1024, "n_head": 16, "n_inner": null, "n_layer": 24, "n_positions": 1024, "pad_token_id": 1, "reorder_and_upcast_attn": false, "resid_pdrop": 0.1, "scale_attn_by_inverse_layer_idx": false, "scale_attn_weights": true, "scale_embedding": true, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "torch_dtype": "float32", "transformers_version": "4.38.2", "use_cache": true, "vocab_size": 42384}123version https://git-lfs.github.com/spec/v1oid sha256:eb7ed92c5f6d9462cd298ec065806800dfaec130a31af9c8defdff01a7287595size 1387087524config.jsonAdded+51
model.safetensorsAdded+3