How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="hf-internal-testing/tiny-random-OPTForCausalLM")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-OPTForCausalLM")
model = AutoModelForCausalLM.from_pretrained("hf-internal-testing/tiny-random-OPTForCausalLM")
Quick Links

No model card

Downloads last month
352,020
Safetensors
Model size
812k params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for hf-internal-testing/tiny-random-OPTForCausalLM

Adapters
2 models

Space using hf-internal-testing/tiny-random-OPTForCausalLM 1