Instructions to use frett/chinese_extract_bert_scratch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use frett/chinese_extract_bert_scratch 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_bert_scratch")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("frett/chinese_extract_bert_scratch") model = AutoModelForQuestionAnswering.from_pretrained("frett/chinese_extract_bert_scratch", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 4320
Browse files123version https://git-lfs.github.com/spec/v1oid sha256:099d96a1fdec59a33fa7333ba807ed4a8a0c1c2df0a4fc95da17ea1acf9a8e04size 406737680123version https://git-lfs.github.com/spec/v1oid sha256:0e33ca678faa0ba9be95cc28d5afd0e50fb111dd543e9379faf4a7c271d6fd33size 406737680
model.safetensors+1-1