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 GitHub repo `RepoAnalysis/PythonCloneDetection` to README
Browse files6 unmodified lines789101112136 unmodified lines# How to useTo use the model, you can follow the original inference source code at https://github.com/sangHa0411/CloneDetection/blob/main/inference.py.More conveniently, a pipeline for this model has been implemented, and you can initialize it with only two lines of code:```python6 unmodified lines7891011121314156 unmodified lines# How to useTo use the model in an efficient way, you can refer to this repository: https://github.com/RepoAnalysis/PythonCloneDetection, which contains a class that integrates data preprocessing, input tokenization, and model inferencing.You can also follow the original inference source code at https://github.com/sangHa0411/CloneDetection/blob/main/inference.py.More conveniently, a pipeline for this model has been implemented, and you can initialize it with only two lines of code:```python
README.md+3-1