Instructions to use Raychanan/bert-base-chinese-first512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Raychanan/bert-base-chinese-first512 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Raychanan/bert-base-chinese-first512")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Raychanan/bert-base-chinese-first512") model = AutoModelForSequenceClassification.from_pretrained("Raychanan/bert-base-chinese-first512") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Raychanan/bert-base-chinese-first512")
model = AutoModelForSequenceClassification.from_pretrained("Raychanan/bert-base-chinese-first512")Quick Links
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
first 512
training_args = TrainingArguments( output_dir="./results", learning_rate=5e-5, per_device_train_batch_size=16, per_device_eval_batch_size=16, num_train_epochs=5, weight_decay=0.01, evaluation_strategy="epoch", push_to_hub=True )
- Downloads last month
- 3
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Raychanan/bert-base-chinese-first512")