Instructions to use codeparrot/codeparrot-small-complexity-prediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codeparrot/codeparrot-small-complexity-prediction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="codeparrot/codeparrot-small-complexity-prediction")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("codeparrot/codeparrot-small-complexity-prediction") model = AutoModelForSequenceClassification.from_pretrained("codeparrot/codeparrot-small-complexity-prediction") - Notebooks
- Google Colab
- Kaggle
Commit ·
8cc4501
1
Parent(s): 55f486f
Librarian Bot: Update dataset YAML metadata for model
Browse filesThis is a pull request to add a dataset, [`codeparrot/codecomplex`](https://huggingface.co/datasets/codeparrot/codecomplex), to the metadata for your model (defined in the `YAML` block of your model's `README.md`).
The pull request was made by [librarian-bot](https://huggingface.co/librarian-bot) and used a combination of rules and/or machine learning to suggest this additional metadata.
If this suggestion is incorrect, feel free to close this pull request.
Librarian Bot was made by [@davanstrien](https://huggingface.co/davanstrien); feel free to get in touch with feedback.
README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
| 3 |
---
|
| 4 |
This is a fine-tuned version of [codeparrot-small-multi](https://huggingface.co/codeparrot/codeparrot-small-multi), a 110M multilingual model for code generation, on [CodeComplex](https://huggingface.co/datasets/codeparrot/codecomplex), a dataset for complexity prediction of Java code.
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
datasets: codeparrot/codecomplex
|
| 4 |
---
|
| 5 |
This is a fine-tuned version of [codeparrot-small-multi](https://huggingface.co/codeparrot/codeparrot-small-multi), a 110M multilingual model for code generation, on [CodeComplex](https://huggingface.co/datasets/codeparrot/codecomplex), a dataset for complexity prediction of Java code.
|