Run this model with HF Jobs
Run Lazyhope/python-clone-detection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Lazyhope/python-clone-detection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Lazyhope/python-clone-detection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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)# pip install -U transformers accelerate # 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, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add a model card
Browse files123---license: mit---123456789101112131415161718192021---license: mit---# Python clone detectionThis is a codebert model for detecting Python clone codes, fine-tuned on the dataset shared by [PoolC](https://github.com/PoolC) on [Hugging Face Hub](https://huggingface.co/datasets/PoolC/1-fold-clone-detection-600k-5fold). The original source code for using the model can be found at https://github.com/sangHa0411/CloneDetection/blob/main/inference.py.# How to useTo use the model, you can follow the instructions in the original source code at https://github.com/sangHa0411/CloneDetection/blob/main/inference.py. A more general inference code may be published later.# CreditsWe would like to thank the original team and authors of the model and the fine-tuning dataset:- [PoolC](https://github.com/PoolC)- [sangHa0411](https://github.com/sangHa0411)- [snoop2head](https://github.com/snoop2head)# LinceseThis model is released under the MIT license.
README.md+18