Instructions to use crumb/gpt2023 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use crumb/gpt2023 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="crumb/gpt2023")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("crumb/gpt2023") model = AutoModelForCausalLM.from_pretrained("crumb/gpt2023") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use crumb/gpt2023 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "crumb/gpt2023" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "crumb/gpt2023", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/crumb/gpt2023
- SGLang
How to use crumb/gpt2023 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 "crumb/gpt2023" \ --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": "crumb/gpt2023", "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 "crumb/gpt2023" \ --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": "crumb/gpt2023", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use crumb/gpt2023 with Docker Model Runner:
docker model run hf.co/crumb/gpt2023
Adding Evaluation Results
#2
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -114,4 +114,17 @@ unfiltered content from the internet, which is far from neutral. As the openAI t
|
|
| 114 |
> not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a
|
| 115 |
> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,
|
| 116 |
> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar
|
| 117 |
-
> levels of caution around use cases that are sensitive to biases around human attributes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
> not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a
|
| 115 |
> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,
|
| 116 |
> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar
|
| 117 |
+
> levels of caution around use cases that are sensitive to biases around human attributes.
|
| 118 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 119 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_crumb__gpt2023)
|
| 120 |
+
|
| 121 |
+
| Metric | Value |
|
| 122 |
+
|-----------------------|---------------------------|
|
| 123 |
+
| Avg. | 24.85 |
|
| 124 |
+
| ARC (25-shot) | 21.93 |
|
| 125 |
+
| HellaSwag (10-shot) | 31.11 |
|
| 126 |
+
| MMLU (5-shot) | 25.05 |
|
| 127 |
+
| TruthfulQA (0-shot) | 40.71 |
|
| 128 |
+
| Winogrande (5-shot) | 50.12 |
|
| 129 |
+
| GSM8K (5-shot) | 0.3 |
|
| 130 |
+
| DROP (3-shot) | 4.73 |
|