Instructions to use frett/chinese_extract_mac_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use frett/chinese_extract_mac_bert with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" 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("question-answering", model="frett/chinese_extract_mac_bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("frett/chinese_extract_mac_bert") model = AutoModelForQuestionAnswering.from_pretrained("frett/chinese_extract_mac_bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (7)
- .gitattributes+1
- all_results.jsonAdded+15
- eval_nbest_predictions.jsonAdded+3
- eval_predictions.jsonAdded
- eval_results.jsonAdded+9
- train_results.jsonAdded+9
- trainer_state.jsonAdded+84
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texteval_nbest_predictions.json filter=lfs diff=lfs merge=lfs -text
123456789101112131415{ "epoch": 8.0, "eval_exact_match": 82.1203057494184, "eval_f1": 82.1203057494184, "eval_runtime": 31.7518, "eval_samples": 3941, "eval_samples_per_second": 124.119, "eval_steps_per_second": 1.953, "total_flos": 5.78511019413504e+16, "train_loss": 0.4164542425036706, "train_runtime": 5827.0638, "train_samples": 27675, "train_samples_per_second": 37.995, "train_steps_per_second": 0.594}123version https://git-lfs.github.com/spec/v1oid sha256:498f322e8c8be8cd404f6a1e7df3f32865cf53034bee481e91eccc9f64b5a9aasize 14101757123456789{ "epoch": 8.0, "eval_exact_match": 82.1203057494184, "eval_f1": 82.1203057494184, "eval_runtime": 31.7518, "eval_samples": 3941, "eval_samples_per_second": 124.119, "eval_steps_per_second": 1.953}123456789{ "epoch": 8.0, "total_flos": 5.78511019413504e+16, "train_loss": 0.4164542425036706, "train_runtime": 5827.0638, "train_samples": 27675, "train_samples_per_second": 37.995, "train_steps_per_second": 0.594}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ "best_metric": null, "best_model_checkpoint": null, "epoch": 8.0, "eval_steps": 500, "global_step": 3464, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.1547344110854503, "grad_norm": 8.039620399475098, "learning_rate": 2.5669745958429563e-05, "loss": 1.0155, "step": 500 }, { "epoch": 2.3094688221709005, "grad_norm": 5.350721836090088, "learning_rate": 2.133949191685912e-05, "loss": 0.5088, "step": 1000 }, { "epoch": 3.464203233256351, "grad_norm": 12.881149291992188, "learning_rate": 1.7009237875288687e-05, "loss": 0.3687, "step": 1500 }, { "epoch": 4.618937644341801, "grad_norm": 7.129382133483887, "learning_rate": 1.2678983833718245e-05, "loss": 0.2937, "step": 2000 }, { "epoch": 5.773672055427252, "grad_norm": 6.728103160858154, "learning_rate": 8.348729792147807e-06, "loss": 0.2566, "step": 2500 }, { "epoch": 6.928406466512702, "grad_norm": 3.0549521446228027, "learning_rate": 4.018475750577367e-06, "loss": 0.2338, "step": 3000 }, { "epoch": 8.0, "step": 3464, "total_flos": 5.78511019413504e+16, "train_loss": 0.4164542425036706, "train_runtime": 5827.0638, "train_samples_per_second": 37.995, "train_steps_per_second": 0.594 } ], "logging_steps": 500, "max_steps": 3464, "num_input_tokens_seen": 0, "num_train_epochs": 8, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 5.78511019413504e+16, "train_batch_size": 64, "trial_name": null, "trial_params": null}.gitattributes+1
all_results.jsonAdded+15
eval_nbest_predictions.jsonAdded+3
eval_predictions.jsonAdded
eval_results.jsonAdded+9
train_results.jsonAdded+9
trainer_state.jsonAdded+84