Instructions to use dzungpham/graphcodebert-code-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dzungpham/graphcodebert-code-classification with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dzungpham/graphcodebert-code-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download graphcodebert-mixcode-fft/checkpoint-150/trainer_state.json from dzungpham/graphcodebert-code-classification: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/dzungpham/graphcodebert-code-classification/resolve/4f8c4ed3d9cf9cdc213702412916e71be9634c88/graphcodebert-mixcode-fft/checkpoint-150/trainer_state.json
- Command line
-
hf download hf://dzungpham/graphcodebert-code-classification@4f8c4ed3d9cf9cdc213702412916e71be9634c88/graphcodebert-mixcode-fft/checkpoint-150/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/dzungpham/graphcodebert-code-classification/resolve/4f8c4ed3d9cf9cdc213702412916e71be9634c88/graphcodebert-mixcode-fft/checkpoint-150/trainer_state.json
1.01 kB
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 0.019198771278638168, | |
| "eval_steps": 1000, | |
| "global_step": 150, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [], | |
| "logging_steps": 500, | |
| "max_steps": 31252, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 4, | |
| "save_steps": 50, | |
| "stateful_callbacks": { | |
| "EarlyStoppingCallback": { | |
| "args": { | |
| "early_stopping_patience": 3, | |
| "early_stopping_threshold": 0.0 | |
| }, | |
| "attributes": { | |
| "early_stopping_patience_counter": 0 | |
| } | |
| }, | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 2525866131456000.0, | |
| "train_batch_size": 64, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |