Instructions to use GAIR/Safety-J-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GAIR/Safety-J-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="GAIR/Safety-J-v1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("GAIR/Safety-J-v1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
b217b2f | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:af53fb495f923e44e47b80419dc608d0f337a512517b9c58f55098e4b47a4f3d
size 6648
|