allenai/c4
Viewer • Updated • 10.4B • 1.43M • 626
How to use cretone/alphex-13B-prototype with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "image-to-text" 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("image-to-text", model="cretone/alphex-13B-prototype") # Load model directly
from transformers import AutoProcessor, AutoModelForCausalLM
processor = AutoProcessor.from_pretrained("cretone/alphex-13B-prototype")
model = AutoModelForCausalLM.from_pretrained("cretone/alphex-13B-prototype", device_map="auto")# Use a pipeline as a high-level helper
# Warning: Pipeline type "image-to-text" 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("image-to-text", model="cretone/alphex-13B-prototype")# Load model directly
from transformers import AutoProcessor, AutoModelForCausalLM
processor = AutoProcessor.from_pretrained("cretone/alphex-13B-prototype")
model = AutoModelForCausalLM.from_pretrained("cretone/alphex-13B-prototype", device_map="auto")
# Gated model: Login with a HF token with gated access permission hf auth login