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
Download all_results.json from SushantGautam/CodeGeneration: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/SushantGautam/CodeGeneration/resolve/main/all_results.json
- Command line
-
hf download hf://SushantGautam/CodeGeneration/all_results.json
-
curl -L -o all_results.json https://huggingface.co/SushantGautam/CodeGeneration/resolve/main/all_results.json
884 Bytes
| { | |
| "epoch": 10.0, | |
| "eval_accuracy": 0.4444444444444444, | |
| "eval_gen_len": 1.0, | |
| "eval_loss": 3.502009630203247, | |
| "eval_rouge1": 0.0, | |
| "eval_rouge2": 0.0, | |
| "eval_rougeL": 0.0, | |
| "eval_rougeLsum": 0.0, | |
| "eval_runtime": 0.2824, | |
| "eval_samples": 176, | |
| "eval_samples_per_second": 623.144, | |
| "eval_steps_per_second": 77.893, | |
| "perplexity": 33.18206868621658, | |
| "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, | |
| "train_loss": 3.5042898788946366, | |
| "train_runtime": 613.1863, | |
| "train_samples": 3507, | |
| "train_samples_per_second": 57.193, | |
| "train_steps_per_second": 7.159 | |
| } |