Instructions to use uclanlp/plbart-java-clone-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use uclanlp/plbart-java-clone-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="uclanlp/plbart-java-clone-detection")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("uclanlp/plbart-java-clone-detection") model = AutoModelForSequenceClassification.from_pretrained("uclanlp/plbart-java-clone-detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
934f4ac
1
Parent(s): fb08d73
Add model files
Browse filesFiles changed (2)
- config.jsonAdded+34
- pytorch_model.binAdded+3
12345678910111213141516171819202122232425262728293031323334{ "activation_dropout": 0.0, "activation_function": "gelu", "architectures": [ "PLBartForSequenceClassification" ], "attention_dropout": 0.1, "bos_token_id": 0, "classifier_dropout": 0.0, "d_model": 768, "decoder_attention_heads": 12, "decoder_ffn_dim": 3072, "decoder_layerdrop": 0.0, "decoder_layers": 6, "dropout": 0.1, "encoder_attention_heads": 12, "encoder_ffn_dim": 3072, "encoder_layerdrop": 0.0, "encoder_layers": 6, "eos_token_id": 2, "forced_eos_token_id": 2, "gradient_checkpointing": false, "init_std": 0.02, "is_encoder_decoder": true, "max_position_embeddings": 1024, "model_type": "plbart", "num_hidden_layers": 6, "pad_token_id": 1, "scale_embedding": true, "torch_dtype": "float32", "transformers_version": "4.12.0.dev0", "use_cache": true, "vocab_size": 50005}123version https://git-lfs.github.com/spec/v1oid sha256:5189ec7bd78c63f97be1ea360e7bcc51f5c8cf4ca52d128bdff5280ff580c5d1size 559345203config.jsonAdded+34
pytorch_model.binAdded+3