Run this model with HF Jobs
Run frett/chinese_extract_longbert on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/frett/chinese_extract_longbert. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/frett/chinese_extract_longbert on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use frett/chinese_extract_longbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use frett/chinese_extract_longbert 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_longbert", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("frett/chinese_extract_longbert", trust_remote_code=True) model = AutoModelForQuestionAnswering.from_pretrained("frett/chinese_extract_longbert", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253---library_name: transformerslicense: apache-2.0base_model: OctopusMind/longbert-embedding-8k-zhtags:- generated_from_trainermodel-index:- name: chinese_extract_longbert results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# chinese_extract_longbert
This model is a fine-tuned version of [OctopusMind/longbert-embedding-8k-zh](https://huggingface.co/OctopusMind/longbert-embedding-8k-zh) on an unknown dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 3e-05- train_batch_size: 32- eval_batch_size: 64- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 5.0
### Training results
### Framework versions
- Transformers 4.45.0.dev0- Pytorch 2.4.1+cu121- Datasets 3.0.0- Tokenizers 0.19.1README.mdAdded+53