Run this model with HF Jobs
Run Rel8ed/cleantech-cls 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/Rel8ed/cleantech-cls. 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/Rel8ed/cleantech-cls 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 Rel8ed/cleantech-cls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rel8ed/cleantech-cls with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Rel8ed/cleantech-cls")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Rel8ed/cleantech-cls") model = AutoModelForSequenceClassification.from_pretrained("Rel8ed/cleantech-cls", device_map="auto") - Notebooks
- Google Colab
- Kaggle
zack_dai commited on
Commit ·
8d9fcb4
1
Parent(s): 0f331d0
Add model
Browse filesFiles changed (10)
- added_tokens.jsonAdded+7
- config.jsonAdded+32
- eval_results.txtAdded+10
- model.safetensorsAdded+3
- model_args.jsonAdded+1
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+95
- training_args.binAdded+3
- vocab.txtAdded
1234567{ "[ABOUT]": 105882, "[HOME]": 105881, "[METAKEYWORD]": 105879, "[META]": 105880, "[TITLE]": 105883}1234567891011121314151617181920212223242526272829303132{ "_name_or_path": "bert-base-multilingual-uncased", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "directionality": "bidi", "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.37.1", "type_vocab_size": 2, "use_cache": true, "vocab_size": 105884}12345678910accuracy = 0.9813847158719791auprc = 0.8943036567064411auroc = 0.9819851603678605eval_loss = 0.0802020154698121f1_score = 0.85995085995086fn = 32fp = 25mcc = 0.8501280376504114tn = 2830tp = 175123version https://git-lfs.github.com/spec/v1oid sha256:ba46ae9d51964d19ffe2bdd2c8ff4d01db31d43f626206d769047b99752d2634size 6694707201{"adafactor_beta1": null, "adafactor_clip_threshold": 1.0, "adafactor_decay_rate": -0.8, "adafactor_eps": [1e-30, 0.001], "adafactor_relative_step": true, "adafactor_scale_parameter": true, "adafactor_warmup_init": true, "adam_betas": [0.9, 0.999], "adam_epsilon": 1e-08, "best_model_dir": "outputs/best_model", "cache_dir": "cache_dir/", "config": {}, "cosine_schedule_num_cycles": 0.5, "custom_layer_parameters": [], "custom_parameter_groups": [], "dataloader_num_workers": 0, "do_lower_case": false, "dynamic_quantize": false, "early_stopping_consider_epochs": false, "early_stopping_delta": 0, "early_stopping_metric": "mcc", "early_stopping_metric_minimize": false, "early_stopping_patience": 10, "encoding": null, "eval_batch_size": 100, "evaluate_during_training": true, "evaluate_during_training_silent": true, "evaluate_during_training_steps": 2000, "evaluate_during_training_verbose": true, "evaluate_each_epoch": true, "fp16": true, "gradient_accumulation_steps": 1, "learning_rate": 4e-05, "local_rank": -1, "logging_steps": 50, "loss_type": null, "loss_args": {}, "manual_seed": null, "max_grad_norm": 1.0, "max_seq_length": 128, "model_name": "bert-base-multilingual-uncased", "model_type": "bert", "multiprocessing_chunksize": -1, "n_gpu": 1, "no_cache": false, "no_save": false, "not_saved_args": [], "num_train_epochs": 100, "optimizer": "AdamW", "output_dir": "outputs/", "overwrite_output_dir": false, "polynomial_decay_schedule_lr_end": 1e-07, "polynomial_decay_schedule_power": 1.0, "process_count": 22, "quantized_model": false, "reprocess_input_data": false, "save_best_model": true, "save_eval_checkpoints": true, "save_model_every_epoch": true, "save_optimizer_and_scheduler": false, "save_steps": 2000, "scheduler": "linear_schedule_with_warmup", "silent": false, "skip_special_tokens": true, "tensorboard_dir": null, "thread_count": null, "tokenizer_name": "bert-base-multilingual-uncased", "tokenizer_type": null, "train_batch_size": 16, "train_custom_parameters_only": false, "trust_remote_code": false, "use_cached_eval_features": false, "use_early_stopping": true, "use_hf_datasets": false, "use_multiprocessing": false, "use_multiprocessing_for_evaluation": false, "wandb_kwargs": {}, "wandb_project": null, "warmup_ratio": 0.06, "warmup_steps": 2766, "weight_decay": 0.0, "model_class": "ClassificationModel", "labels_list": [0, 1], "labels_map": {}, "lazy_delimiter": "\t", "lazy_labels_column": 1, "lazy_loading": false, "lazy_loading_start_line": 1, "lazy_text_a_column": null, "lazy_text_b_column": null, "lazy_text_column": 0, "onnx": false, "regression": false, "sliding_window": false, "special_tokens_list": ["[METAKEYWORD]", "[META]", "[HOME]", "[ABOUT]", "[TITLE]"], "stride": 0.8, "tie_value": 1}1234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "105879": { "content": "[METAKEYWORD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "105880": { "content": "[META]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "105881": { "content": "[HOME]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "105882": { "content": "[ABOUT]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "105883": { "content": "[TITLE]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_lower_case": true, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:3691e54a260e293614a7a59afba203f66924c1051aa68aebc949484b74351ba1size 3768added_tokens.jsonAdded+7
config.jsonAdded+32
eval_results.txtAdded+10
model.safetensorsAdded+3
model_args.jsonAdded+1
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+95
training_args.binAdded+3
vocab.txtAdded