Text Classification
Transformers
ONNX
Safetensors
English
roberta
code
programming-language
code-classification
text-embeddings-inference
Instructions to use philomath-1209/programming-language-identification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use philomath-1209/programming-language-identification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="philomath-1209/programming-language-identification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("philomath-1209/programming-language-identification") model = AutoModelForSequenceClassification.from_pretrained("philomath-1209/programming-language-identification", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
ONNX-converted version of the model
Verified signatureWe decided to swap the existing model for the [Code Scanner](https://llm-guard.com/input_scanners/code/) in [llm-guard](https://github.com/laiyer-ai/llm-guard) with your model. Our tests show much better accuracy compared to the HuggingFace's one. 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-injection21ab967
-
Update README.md
Verified signature1577cef
-
Update README.md
Maninder Singhbc528bd
-
Update README.md
Maninder Singh8953341
-
Inference Code added
Maninder Singhac48d25 -
Update README.md
Maninder Singhd17eb4a -
updated model card
Maninder Singh748090d -
Update README.md
Maninder Singh5d5ca4b -
Update README.md
Maninder Singh4b4843c -
Update README.md
Maninder Singheab57b7 -
Update README.md
Maninder Singh4d6cc9b -
Update README.md
Maninder Singh4116153 -
Update README.md
Maninder Singhb9434c2 -
update model_card
Maninder SinghThis Model is fine-tuned version of *huggingface/CodeBERTa-small-v1* on *cakiki/rosetta-code* Dataset for 25 Programming Languages as mentioned below. ## Training Details: Model is trained for 25 epochs on Azure for nearly 26000 Datapoints for above Mentioned 25 Programming Languages extracted from Dataset having 1006 of total Programming Language. Below is the Training Result for 25 epochs. 1930b02 -
Update README.md
Maninder Singh9f5e4f0 -
uploaded trained model files
Maninder SinghI have uploaded all the files of Classification model to classify out of 25 programming languages6b14493
-
initial commit
a9979f5