Instructions to use power-greg/super-fast-llm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use power-greg/super-fast-llm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="power-greg/super-fast-llm")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("power-greg/super-fast-llm") model = AutoModelForCausalLM.from_pretrained("power-greg/super-fast-llm") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use power-greg/super-fast-llm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "power-greg/super-fast-llm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "power-greg/super-fast-llm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/power-greg/super-fast-llm
- SGLang
How to use power-greg/super-fast-llm 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 "power-greg/super-fast-llm" \ --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": "power-greg/super-fast-llm", "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 "power-greg/super-fast-llm" \ --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": "power-greg/super-fast-llm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use power-greg/super-fast-llm with Docker Model Runner:
docker model run hf.co/power-greg/super-fast-llm
Commit ·
a8e76d5
1
Parent(s): bff5280
Upload 2 files
Browse files- config.json +5 -5
- pytorch_model.bin +2 -2
config.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPT2LMHeadModel"
|
| 6 |
],
|
| 7 |
-
"attn_pdrop": 0.
|
| 8 |
"bos_token_id": 0,
|
| 9 |
"embd_pdrop": 0.0,
|
| 10 |
"eos_token_id": 0,
|
|
@@ -12,9 +12,9 @@
|
|
| 12 |
"layer_norm_epsilon": 1e-05,
|
| 13 |
"model_type": "gpt2",
|
| 14 |
"n_ctx": 256,
|
| 15 |
-
"n_embd":
|
| 16 |
-
"n_head":
|
| 17 |
-
"n_inner":
|
| 18 |
"n_layer": 4,
|
| 19 |
"n_positions": 1024,
|
| 20 |
"reorder_and_upcast_attn": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "gpt2",
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPT2LMHeadModel"
|
| 6 |
],
|
| 7 |
+
"attn_pdrop": 0.1,
|
| 8 |
"bos_token_id": 0,
|
| 9 |
"embd_pdrop": 0.0,
|
| 10 |
"eos_token_id": 0,
|
|
|
|
| 12 |
"layer_norm_epsilon": 1e-05,
|
| 13 |
"model_type": "gpt2",
|
| 14 |
"n_ctx": 256,
|
| 15 |
+
"n_embd": 2048,
|
| 16 |
+
"n_head": 16,
|
| 17 |
+
"n_inner": 2048,
|
| 18 |
"n_layer": 4,
|
| 19 |
"n_positions": 1024,
|
| 20 |
"reorder_and_upcast_attn": false,
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6c569432850918cce7459bd9234c14e88b6e80fd0328bd479fa9fcb1135d96f
|
| 3 |
+
size 432375793
|