Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
ml-intern
text-embeddings-inference
Run this model with HF Jobs
Run frankwong2001/distilbert-imdb-tiny-cpu 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/frankwong2001/distilbert-imdb-tiny-cpu. 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/frankwong2001/distilbert-imdb-tiny-cpu 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 frankwong2001/distilbert-imdb-tiny-cpu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use frankwong2001/distilbert-imdb-tiny-cpu with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="frankwong2001/distilbert-imdb-tiny-cpu")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("frankwong2001/distilbert-imdb-tiny-cpu") model = AutoModelForSequenceClassification.from_pretrained("frankwong2001/distilbert-imdb-tiny-cpu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
tiny cpu run
Browse filesFiles changed (6)
- README.md+47-15
- config.jsonAdded+36
- model.safetensorsAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+15
- training_args.binAdded+3
1234567891011121314151617181920212223242526---tags:- ml-intern---# frankwong2001/distilbert-imdb-tiny-cpu<!-- ml-intern-provenance -->## Generated by ML InternThis model repository was generated by [ML Intern](https://github.com/huggingface/ml-intern), an agent for machine learning research and development on the Hugging Face Hub.- Try ML Intern: https://smolagents-ml-intern.hf.space- Source code: https://github.com/huggingface/ml-intern## Usage```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizermodel_id = "frankwong2001/distilbert-imdb-tiny-cpu"tokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained(model_id)```For non-causal architectures, replace `AutoModelForCausalLM` with the appropriate `AutoModel` class.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---library_name: transformerslicense: apache-2.0base_model: distilbert/distilbert-base-uncasedtags:- generated_from_trainermodel-index:- name: distilbert-imdb-tiny-cpuresults: []---<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># distilbert-imdb-tiny-cpuThis model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.3821## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 16- eval_batch_size: 16- seed: 42- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 1### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 0.5992 | 1.0 | 63 | 0.3821 |### Framework versions- Transformers 5.8.0- Pytorch 2.11.0+cu130- Datasets 4.8.5- Tokenizers 0.22.2
123456789101112131415161718192021222324252627282930313233343536{ "activation": "gelu", "architectures": [ "DistilBertForSequenceClassification" ], "attention_dropout": 0.1, "bos_token_id": null, "dim": 768, "dropout": 0.1, "dtype": "float32", "eos_token_id": null, "hidden_dim": 3072, "id2label": { "0": "neg", "1": "pos" }, "initializer_range": 0.02, "label2id": { "neg": 0, "pos": 1 }, "max_position_embeddings": 512, "model_type": "distilbert", "n_heads": 12, "n_layers": 6, "pad_token_id": 0, "problem_type": "single_label_classification", "qa_dropout": 0.1, "seq_classif_dropout": 0.2, "sinusoidal_pos_embds": false, "tie_weights_": true, "tie_word_embeddings": true, "transformers_version": "5.8.0", "use_cache": false, "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:1c3acd3e24006723db7179e036f758bfa307c548e066fe896e298a5cef411625size 267832560123456789101112131415{ "backend": "tokenizers", "cls_token": "[CLS]", "do_lower_case": true, "is_local": false, "local_files_only": false, "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:978cf7510ecb076eacf38911779f783ab32c880d60f96156e1c735e9b90b9259size 5265README.md+47-15
config.jsonAdded+36
model.safetensorsAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+15
training_args.binAdded+3