Final model
Browse files- README.md +8 -24
- config.json +2 -35
- model.safetensors +2 -2
README.md
CHANGED
|
@@ -1,26 +1,10 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
- accuracy
|
| 7 |
-
base_model:
|
| 8 |
-
- distilbert/distilbert-base-uncased
|
| 9 |
-
pipeline_tag: text-classification
|
| 10 |
-
|
| 11 |
-
model-index:
|
| 12 |
-
- name: code_english_model
|
| 13 |
-
results:
|
| 14 |
-
- task:
|
| 15 |
-
type: text-classification
|
| 16 |
-
dataset:
|
| 17 |
-
name: imdb and codeparrot/github
|
| 18 |
-
type: text
|
| 19 |
-
metrics:
|
| 20 |
-
- name: F1
|
| 21 |
-
type: F1
|
| 22 |
-
value: 1.0
|
| 23 |
-
- name: Accuracy
|
| 24 |
-
type: Accuracy
|
| 25 |
-
value: 99.98
|
| 26 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- model_hub_mixin
|
| 5 |
+
- pytorch_model_hub_mixin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
+
|
| 8 |
+
This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
|
| 9 |
+
- Library: https://huggingface.co/anatal/
|
| 10 |
+
- Docs: [More Information Needed]
|
config.json
CHANGED
|
@@ -1,36 +1,3 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
|
| 4 |
-
"RobertaForSequenceClassification"
|
| 5 |
-
],
|
| 6 |
-
"attention_probs_dropout_prob": 0.1,
|
| 7 |
-
"bos_token_id": 0,
|
| 8 |
-
"classifier_dropout": null,
|
| 9 |
-
"eos_token_id": 2,
|
| 10 |
-
"hidden_act": "gelu",
|
| 11 |
-
"hidden_dropout_prob": 0.1,
|
| 12 |
-
"hidden_size": 768,
|
| 13 |
-
"id2label": {
|
| 14 |
-
"0": "ENGLISH",
|
| 15 |
-
"1": "CODE"
|
| 16 |
-
},
|
| 17 |
-
"initializer_range": 0.02,
|
| 18 |
-
"intermediate_size": 3072,
|
| 19 |
-
"label2id": {
|
| 20 |
-
"CODE": 1,
|
| 21 |
-
"ENGLISH": 0
|
| 22 |
-
},
|
| 23 |
-
"layer_norm_eps": 1e-05,
|
| 24 |
-
"max_position_embeddings": 514,
|
| 25 |
-
"model_type": "roberta",
|
| 26 |
-
"num_attention_heads": 12,
|
| 27 |
-
"num_hidden_layers": 6,
|
| 28 |
-
"pad_token_id": 1,
|
| 29 |
-
"position_embedding_type": "absolute",
|
| 30 |
-
"problem_type": "single_label_classification",
|
| 31 |
-
"torch_dtype": "float32",
|
| 32 |
-
"transformers_version": "4.47.0",
|
| 33 |
-
"type_vocab_size": 1,
|
| 34 |
-
"use_cache": true,
|
| 35 |
-
"vocab_size": 52000
|
| 36 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"input_dim": 1536
|
| 3 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20bc8dcf1d5c45eb8d00bf44d77774e6edbb39ea9e46e016b0c666af68c78bc4
|
| 3 |
+
size 787764
|