Text Generation
Transformers
PyTorch
TensorFlow
JAX
English
opt
Eval Results (legacy)
text-generation-inference
Instructions to use inverse-scaling/opt-2.7b_eval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inverse-scaling/opt-2.7b_eval with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inverse-scaling/opt-2.7b_eval")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("inverse-scaling/opt-2.7b_eval") model = AutoModelForCausalLM.from_pretrained("inverse-scaling/opt-2.7b_eval", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use inverse-scaling/opt-2.7b_eval with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inverse-scaling/opt-2.7b_eval" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inverse-scaling/opt-2.7b_eval", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/inverse-scaling/opt-2.7b_eval
- SGLang
How to use inverse-scaling/opt-2.7b_eval 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 "inverse-scaling/opt-2.7b_eval" \ --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": "inverse-scaling/opt-2.7b_eval", "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 "inverse-scaling/opt-2.7b_eval" \ --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": "inverse-scaling/opt-2.7b_eval", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use inverse-scaling/opt-2.7b_eval with Docker Model Runner:
docker model run hf.co/inverse-scaling/opt-2.7b_eval
Commit History
-
Add verifyToken field to verify evaluation results are produced by Hugging Face's automatic model evaluator (#19)
- Add verifyToken field to verify evaluation results are produced by Hugging Face's automatic model evaluator (027607bb8a1064b34933bc855950adb88808c7a1) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>a2de279
-
Add evaluation results on the mathemakitten--winobias_antistereotype_test_v5 config and test split of mathemakitten/winobias_antistereotype_test_v5 (#18)
- Add evaluation results on the mathemakitten--winobias_antistereotype_test_v5 config and test split of mathemakitten/winobias_antistereotype_test_v5 (47c830d4e7e5b7bb8f2aa6ebca0ff2287b572f9c) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>7efae61 -
Add evaluation results on the mathemakitten--winobias_antistereotype_test_v5 config and test split of mathemakitten/winobias_antistereotype_test_v5 (#17)
- Add evaluation results on the mathemakitten--winobias_antistereotype_test_v5 config and test split of mathemakitten/winobias_antistereotype_test_v5 (96c9efce36230cdcc98089f0770b1e4aee8c2b4d) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>d4491fe -
Add evaluation results on the mathemakitten--winobias_antistereotype_test_v5 config and test split of mathemakitten/winobias_antistereotype_test_v5 (#16)
- Add evaluation results on the mathemakitten--winobias_antistereotype_test_v5 config and test split of mathemakitten/winobias_antistereotype_test_v5 (30c9f3e02bc89ff1118af2eaa8e5dcd2c3a6b8b6) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>44a34de
-
Add evaluation results on the mathemakitten--winobias_antistereotype_test_cot_v3 config and test split of mathemakitten/winobias_antistereotype_test_cot_v3 (#13)
- Add evaluation results on the mathemakitten--winobias_antistereotype_test_cot_v3 config and test split of mathemakitten/winobias_antistereotype_test_cot_v3 (d05c67465ed5faa92666411c5c737fcb8c336ad4) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>7e07887
-
Add evaluation results on the mathemakitten--winobias_antistereotype_test_cot_v1 config and test split of mathemakitten/winobias_antistereotype_test_cot_v1 (#12)
- Add evaluation results on the mathemakitten--winobias_antistereotype_test_cot_v1 config and test split of mathemakitten/winobias_antistereotype_test_cot_v1 (6a0beb38980d01fdbcdb54c92b5fa6b3b72921a8) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>f454423
-
Add evaluation results on the inverse-scaling--hindsight-neglect-10shot config and train split of inverse-scaling/hindsight-neglect-10shot (#6)
- Add evaluation results on the inverse-scaling--hindsight-neglect-10shot config and train split of inverse-scaling/hindsight-neglect-10shot (dc790ca0788d6cd7de0324dd88968d43030a6237) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>99c9b7f
-
Update README.md
f031bd2 -
Update README.md
eaa0bb2 -
Add evaluation results on the inverse-scaling--NeQA config and train split of inverse-scaling/NeQA (#3)
- Add evaluation results on the inverse-scaling--NeQA config and train split of inverse-scaling/NeQA (8d4a744ed13966b857c6ce71a7f202d117cdfce4) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>92250f6 -
Update README.md
bdc8ddd
-
Add evaluation results on the inverse-scaling--41 config and train split of inverse-scaling/41 (#2)
- Add evaluation results on the inverse-scaling--41 config and train split of inverse-scaling/41 (2bb0dd212bfb017e3d98aa3ca3aeabe9a101b31e) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>7e749b5
-
cp opt-2.7b
Michael Pieler2a83fcf
-
initial commit
83e34fe