Instructions to use Gemstone-Models-Cooldown/Gemstone-256x27_cooldown with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Gemstone-Models-Cooldown/Gemstone-256x27_cooldown with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Gemstone-Models-Cooldown/Gemstone-256x27_cooldown")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Gemstone-Models-Cooldown/Gemstone-256x27_cooldown") model = AutoModelForCausalLM.from_pretrained("Gemstone-Models-Cooldown/Gemstone-256x27_cooldown", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Gemstone-Models-Cooldown/Gemstone-256x27_cooldown with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Gemstone-Models-Cooldown/Gemstone-256x27_cooldown" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Gemstone-Models-Cooldown/Gemstone-256x27_cooldown", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Gemstone-Models-Cooldown/Gemstone-256x27_cooldown
- SGLang
How to use Gemstone-Models-Cooldown/Gemstone-256x27_cooldown 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 "Gemstone-Models-Cooldown/Gemstone-256x27_cooldown" \ --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": "Gemstone-Models-Cooldown/Gemstone-256x27_cooldown", "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 "Gemstone-Models-Cooldown/Gemstone-256x27_cooldown" \ --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": "Gemstone-Models-Cooldown/Gemstone-256x27_cooldown", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Gemstone-Models-Cooldown/Gemstone-256x27_cooldown with Docker Model Runner:
docker model run hf.co/Gemstone-Models-Cooldown/Gemstone-256x27_cooldown
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- causal-lm
|
| 6 |
+
library_name: transformers
|
| 7 |
+
license: apache-2.0
|
| 8 |
+
datasets:
|
| 9 |
+
- allenai/dolma
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## Model Details
|
| 13 |
+
### Training
|
| 14 |
+
Models trained using [litgpt](https://github.com/Lightning-AI/litgpt) and [AxoNN](https://github.com/axonn-ai/litgpt) on AMD MI250 GPUs.
|
| 15 |
+
|
| 16 |
+
### Data
|
| 17 |
+
Train and validation data is taken from non-overlapping subsets of [dolma](https://huggingface.co/datasets/allenai/dolma).
|
| 18 |
+
|