Instructions to use SushantGautam/CodeGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SushantGautam/CodeGeneration with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="SushantGautam/CodeGeneration")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("SushantGautam/CodeGeneration") model = AutoModelForMaskedLM.from_pretrained("SushantGautam/CodeGeneration", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 324 Bytes
e2c73cc 64b139a e2c73cc 64b139a e2c73cc 64b139a e2c73cc | 1 2 3 4 5 6 7 8 9 10 11 12 | {
"predict_gen_len": 1.0,
"predict_loss": 5.266044616699219,
"predict_rouge1": 0.0,
"predict_rouge2": 0.0,
"predict_rougeL": 0.0,
"predict_rougeLsum": 0.0,
"predict_runtime": 14.8282,
"predict_samples": 3527,
"predict_samples_per_second": 237.858,
"predict_steps_per_second": 14.904
} |