Instructions to use emekaphilians/model_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use emekaphilians/model_output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="emekaphilians/model_output")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("emekaphilians/model_output") model = AutoModelForSequenceClassification.from_pretrained("emekaphilians/model_output", device_map="auto") - Notebooks
- Google Colab
- Kaggle
emekaphilians/trustchainai-codebert
Browse filesFiles changed (4)
- README.mdAdded+66
- config.jsonAdded+62
- model.safetensorsAdded+3
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566---library_name: transformersbase_model: microsoft/codebert-basetags:- generated_from_trainermetrics:- f1model-index:- name: model_output results: []---
<!-- 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. -->
# model_output
This model is a fine-tuned version of [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.0428- F1: 0.9861
## 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: 16- eval_batch_size: 32- 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: 100- num_epochs: 5- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | F1 ||:-------------:|:-----:|:----:|:---------------:|:------:|| No log | 1.0 | 301 | 0.1498 | 0.9602 || 0.5690 | 2.0 | 602 | 0.0640 | 0.9816 || 0.5690 | 3.0 | 903 | 0.0843 | 0.9796 || 0.0447 | 4.0 | 1204 | 0.0614 | 0.9809 || 0.0265 | 5.0 | 1505 | 0.0675 | 0.9808 |
### Framework versions
- Transformers 5.0.0- Pytorch 2.12.0+cu130- Datasets 4.8.5- Tokenizers 0.22.21234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ "add_cross_attention": false, "architectures": [ "RobertaForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "dtype": "float32", "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6", "7": "LABEL_7", "8": "LABEL_8", "9": "LABEL_9", "10": "LABEL_10", "11": "LABEL_11", "12": "LABEL_12", "13": "LABEL_13" }, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_10": 10, "LABEL_11": 11, "LABEL_12": 12, "LABEL_13": 13, "LABEL_2": 2, "LABEL_3": 3, "LABEL_4": 4, "LABEL_5": 5, "LABEL_6": 6, "LABEL_7": 7, "LABEL_8": 8, "LABEL_9": 9 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "output_past": true, "pad_token_id": 1, "problem_type": "single_label_classification", "tie_word_embeddings": true, "transformers_version": "5.0.0", "type_vocab_size": 1, "use_cache": false, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:c4c67053727bc4d295b145599bba677f24f30bdfd13217a5a79d0adbd20bd884size 498649712123version https://git-lfs.github.com/spec/v1oid sha256:f0ad8ebe26bf9d9896e1e9e40c6e7c88cd1804764bf64655d5b34be953c29a80size 5201README.mdAdded+66
config.jsonAdded+62
model.safetensorsAdded+3
training_args.binAdded+3