Instructions to use facebook/opt-66b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/opt-66b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="facebook/opt-66b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("facebook/opt-66b") model = AutoModelForCausalLM.from_pretrained("facebook/opt-66b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use facebook/opt-66b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "facebook/opt-66b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "facebook/opt-66b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/facebook/opt-66b
- SGLang
How to use facebook/opt-66b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "facebook/opt-66b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "facebook/opt-66b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "facebook/opt-66b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "facebook/opt-66b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use facebook/opt-66b with Docker Model Runner:
docker model run hf.co/facebook/opt-66b
Add evaluation results on the vi config and test split of futin/guess
Browse filesBeep boop, I am a bot from Hugging Face's automatic model evaluator 👋!\
Your model has been evaluated on the vi config and test split of the [futin/guess](https://huggingface.co/datasets/futin/guess) dataset by @futin, using the predictions stored [here](https://huggingface.co/datasets/autoevaluate/autoeval-eval-futin__guess-vi-4444ed-2051267099).\
Accept this pull request to see the results displayed on the [Hub leaderboard](https://huggingface.co/spaces/autoevaluate/leaderboards?dataset=futin/guess).\
Evaluate your model on more datasets [here](https://huggingface.co/spaces/autoevaluate/model-evaluator?dataset=futin/guess).
3 unmodified lines4567891011123 unmodified linestags:- text-generation- optlicense: othercommercial: false---# OPT : Open Pre-trained Transformer Language Models3 unmodified lines456789101112131415161718192021222324252627282930313 unmodified linestags:- text-generation- optlicense: othercommercial: falsemodel-index:- name: facebook/opt-66bresults:- task:type: zero-shot-classificationname: Zero-Shot Text Classificationdataset:name: futin/guesstype: futin/guessconfig: visplit: testmetrics:- name: Accuracytype: accuracyvalue: 0.2668004012036108verified: true- name: Losstype: lossvalue: 3.706752384863512verified: true---# OPT : Open Pre-trained Transformer Language Models