Text Classification
Transformers
Safetensors
English
Korean
roberta
sequence-classification
code
small
text-embeddings-inference
Instructions to use hosung1/code-sim-roberta-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hosung1/code-sim-roberta-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hosung1/code-sim-roberta-small")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hosung1/code-sim-roberta-small") model = AutoModelForSequenceClassification.from_pretrained("hosung1/code-sim-roberta-small") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "RobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 1, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 512, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 2048, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 8, | |
| "num_hidden_layers": 6, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "transformers_version": "4.57.1", | |
| "type_vocab_size": 1, | |
| "use_cache": false, | |
| "vocab_size": 32000 | |
| } | |