Instructions to use Lazyhope/python-clone-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lazyhope/python-clone-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Lazyhope/python-clone-detection", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Lazyhope/python-clone-detection", trust_remote_code=True) model = AutoModel.from_pretrained("Lazyhope/python-clone-detection", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Rename config key '_name_or_path'
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"CloneDetectionModel"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "microsoft/graphcodebert-base",
|
| 3 |
"architectures": [
|
| 4 |
"CloneDetectionModel"
|
| 5 |
],
|