Text Classification
Transformers
ONNX
Safetensors
English
roberta
finance
accounting
spend-classification
procurement
text-embeddings-inference
Run this model with HF Jobs
Run Saeedhoj/spendcoder-distilroberta 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/Saeedhoj/spendcoder-distilroberta. 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/Saeedhoj/spendcoder-distilroberta 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 Saeedhoj/spendcoder-distilroberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Saeedhoj/spendcoder-distilroberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Saeedhoj/spendcoder-distilroberta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Saeedhoj/spendcoder-distilroberta") model = AutoModelForSequenceClassification.from_pretrained("Saeedhoj/spendcoder-distilroberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Run 2: 8 epochs, max length 96, class-weighted loss
Browse filesFiles changed (3)
- README.md+9-2
- config.json-1
- model.safetensors+1-1
3 unmodified lines45678910113 unmodified lineslanguage: enpipeline_tag: text-classificationlibrary_name: transformerstags: [finance, accounting, spend-classification, procurement, onnx]metrics: [accuracy, f1]---# SpendCoder: purchase line to spend category3 unmodified lines4567891011121314151617183 unmodified lineslanguage: enpipeline_tag: text-classificationlibrary_name: transformerstags:- finance- accounting- spend-classification- procurement- onnxmetrics:- accuracy- f1---# SpendCoder: purchase line to spend category
51 unmodified lines5253545556575851 unmodified lines"num_attention_heads": 12,"num_hidden_layers": 6,"pad_token_id": 1,"problem_type": "single_label_classification","tie_word_embeddings": true,"transformers_version": "5.22.1","type_vocab_size": 1,51 unmodified lines52535455565751 unmodified lines"num_attention_heads": 12,"num_hidden_layers": 6,"pad_token_id": 1,"tie_word_embeddings": true,"transformers_version": "5.22.1","type_vocab_size": 1,
123version https://git-lfs.github.com/spec/v1oid sha256:8dc4bcde76cc48c8cdbc0d5407b5819f51e74ec977bf83def8677faded950dd1size 328529192123version https://git-lfs.github.com/spec/v1oid sha256:bfa59fc27d5234b175af4da0764df9357b2e9e662fd2bcad153b3cae49a56544size 328529192
README.md+9-2
config.json-1
model.safetensors+1-1