Text Classification
Transformers
PyTorch
TensorBoard
ONNX
Safetensors
English
distilbert
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run usvsnsp/code-vs-nl 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/usvsnsp/code-vs-nl. 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/usvsnsp/code-vs-nl 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 usvsnsp/code-vs-nl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use usvsnsp/code-vs-nl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="usvsnsp/code-vs-nl")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("usvsnsp/code-vs-nl") model = AutoModelForSequenceClassification.from_pretrained("usvsnsp/code-vs-nl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
ONNX-converted version of the model
Verified signatureWe decided to add this model for the Code Scanner in llm-guard with your model. To have faster inference, we use ONNX models converted using Optimum from HuggingFace. Example of the repo with ONNX built-in: https://huggingface.co/laiyer/deberta-v3-base-prompt-injection Similar PR: https://huggingface.co/philomath-1209/programming-language-identification/discussions/112ad0f2
-
Librarian Bot: Add base_model information to model (#2)
- Librarian Bot: Add base_model information to model (70e2c3f21f6cfcd3d3513adcacb9a76dc00e59cd) Co-authored-by: Librarian Bot (Bot) <librarian-bot@users.noreply.huggingface.co>962c30d
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (f941f8b3c2e9549b690ba6463214c16ac895db46) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>2b97ef5
-
Update README.md
5504192
-
Upload tokenizer
a60b413 -
Upload tokenizer
901e337 -
End of training
813e0bc -
Training in progress, step 1000
cf459de -
Training in progress, step 500
199c70e -
Training in progress, step 1000
c447fea -
Training in progress, step 500
0669c98 -
initial commit
2f459ed