Instructions to use ayanami-kitasan/code-pruner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ayanami-kitasan/code-pruner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ayanami-kitasan/code-pruner")# pip install -U transformers accelerate # Load model directly from transformers import SwePrunerForCodeCompression model = SwePrunerForCodeCompression.from_pretrained("ayanami-kitasan/code-pruner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download merges.txt from ayanami-kitasan/code-pruner: direct link, hf CLI and curl.
- Browser
- Download file 1.67 MB
-
https://huggingface.co/ayanami-kitasan/code-pruner/resolve/main/merges.txt
- Command line
-
hf download hf://ayanami-kitasan/code-pruner/merges.txt
-
curl -L -o merges.txt https://huggingface.co/ayanami-kitasan/code-pruner/resolve/main/merges.txt
1.67 MB
File too large to display, you can check the raw version instead.