Instructions to use cyberagent/open-calm-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cyberagent/open-calm-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cyberagent/open-calm-large")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cyberagent/open-calm-large") model = AutoModelForCausalLM.from_pretrained("cyberagent/open-calm-large") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use cyberagent/open-calm-large with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cyberagent/open-calm-large" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cyberagent/open-calm-large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cyberagent/open-calm-large
- SGLang
How to use cyberagent/open-calm-large 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 "cyberagent/open-calm-large" \ --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": "cyberagent/open-calm-large", "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 "cyberagent/open-calm-large" \ --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": "cyberagent/open-calm-large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cyberagent/open-calm-large with Docker Model Runner:
docker model run hf.co/cyberagent/open-calm-large
Adding Evaluation Results
#2
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -83,4 +83,17 @@ print(output)
|
|
| 83 |
year = {2021},
|
| 84 |
version = {0.0.1},
|
| 85 |
}
|
| 86 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
year = {2021},
|
| 84 |
version = {0.0.1},
|
| 85 |
}
|
| 86 |
+
```
|
| 87 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 88 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_cyberagent__open-calm-large)
|
| 89 |
+
|
| 90 |
+
| Metric | Value |
|
| 91 |
+
|-----------------------|---------------------------|
|
| 92 |
+
| Avg. | 25.24 |
|
| 93 |
+
| ARC (25-shot) | 20.73 |
|
| 94 |
+
| HellaSwag (10-shot) | 29.56 |
|
| 95 |
+
| MMLU (5-shot) | 25.23 |
|
| 96 |
+
| TruthfulQA (0-shot) | 46.52 |
|
| 97 |
+
| Winogrande (5-shot) | 51.14 |
|
| 98 |
+
| GSM8K (5-shot) | 0.08 |
|
| 99 |
+
| DROP (3-shot) | 3.42 |
|