Instructions to use ncoop57/bart-base-code-summarizer-java-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ncoop57/bart-base-code-summarizer-java-v0 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("summarization", model="ncoop57/bart-base-code-summarizer-java-v0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ncoop57/bart-base-code-summarizer-java-v0") model = AutoModelForSeq2SeqLM.from_pretrained("ncoop57/bart-base-code-summarizer-java-v0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update tokenizer_config.json
df2dbad -
Update merges.txt
9e4aee9 -
Update special_tokens_map.json
9cd9566 -
Update vocab.json
8f9dc0d -
Update config.json.old
3c1a4d7 -
Update config.json
94a58bc -
Update tokenizer_config.json
30c4575 -
Update merges.txt
a243ba0 -
Update special_tokens_map.json
2226883 -
Update vocab.json
84d3feb -
Update config.json.old
db7e5d9 -
Update config.json
d1a5fa6 -
Update merges.txt
bac5d79 -
Update tokenizer_config.json
8fa356c -
Update special_tokens_map.json
e055531 -
Update vocab.json
570492f -
Update config.json
fb8b10a -
Update tokenizer_config.json
cdaba15 -
Update merges.txt
333d082 -
Update special_tokens_map.json
8b18a99 -
Update vocab.json
a97a544 -
Update config.json
7511144 -
Update tokenizer_config.json
4124911 -
Update merges.txt
622e21a -
Update special_tokens_map.json
0db3344 -
initial commit
1749ebf