Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use azherali/CodeDetect-UniXCoder-T2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use azherali/CodeDetect-UniXCoder-T2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="azherali/CodeDetect-UniXCoder-T2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("azherali/CodeDetect-UniXCoder-T2") model = AutoModelForSequenceClassification.from_pretrained("azherali/CodeDetect-UniXCoder-T2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CodeDetect-UniXCoder-T2
This model is a fine-tuned version of microsoft/unixcoder-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.3991
- Accuracy: 0.6569
- F1: 0.6143
- Precision: 0.6120
- Recall: 0.6191
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 64
- eval_batch_size: 64
- 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
- lr_scheduler_warmup_steps: 0.1
- num_epochs: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.9684 | 1.0 | 13235 | 1.0380 | 0.6277 | 0.5885 | 0.5892 | 0.6279 |
| 0.7011 | 2.0 | 26470 | 1.0398 | 0.6485 | 0.6099 | 0.6051 | 0.6334 |
| 0.4888 | 3.0 | 39705 | 1.1497 | 0.6559 | 0.6108 | 0.6075 | 0.6221 |
| 0.3457 | 4.0 | 52940 | 1.2836 | 0.6573 | 0.6139 | 0.6089 | 0.6235 |
| 0.2443 | 5.0 | 66175 | 1.3991 | 0.6569 | 0.6143 | 0.6120 | 0.6191 |
Framework versions
- Transformers 5.13.1
- Pytorch 2.11.0+cu130
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 47
Model tree for azherali/CodeDetect-UniXCoder-T2
Base model
microsoft/unixcoder-base