Text Generation
Transformers
Safetensors
English
llama
causal-lm
pretraining
from-scratch
single-gpu
nvidia-l20
text-generation-inference
Instructions to use Epode/Prelude-1B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Epode/Prelude-1B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Epode/Prelude-1B-Base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Epode/Prelude-1B-Base") model = AutoModelForCausalLM.from_pretrained("Epode/Prelude-1B-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Epode/Prelude-1B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Epode/Prelude-1B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Epode/Prelude-1B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Epode/Prelude-1B-Base
- SGLang
How to use Epode/Prelude-1B-Base 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 "Epode/Prelude-1B-Base" \ --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": "Epode/Prelude-1B-Base", "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 "Epode/Prelude-1B-Base" \ --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": "Epode/Prelude-1B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Epode/Prelude-1B-Base with Docker Model Runner:
docker model run hf.co/Epode/Prelude-1B-Base
Li commited on
Correct indexed tensor byte metadata
Browse files- model.safetensors.index.json +1 -1
- release-manifest.json +2 -1
model.safetensors.index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
"total_parameters": 1100048384,
|
| 4 |
-
"total_size":
|
| 5 |
},
|
| 6 |
"weight_map": {
|
| 7 |
"lm_head.weight": "model-00003-of-00003.safetensors",
|
|
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
"total_parameters": 1100048384,
|
| 4 |
+
"total_size": 4400193536
|
| 5 |
},
|
| 6 |
"weight_map": {
|
| 7 |
"lm_head.weight": "model-00003-of-00003.safetensors",
|
release-manifest.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
},
|
| 24 |
"model.safetensors.index.json": {
|
| 25 |
"bytes": 16555,
|
| 26 |
-
"sha256": "
|
| 27 |
},
|
| 28 |
"model_config.yaml": {
|
| 29 |
"bytes": 1162,
|
|
@@ -54,6 +54,7 @@
|
|
| 54 |
"stored_dtype": [
|
| 55 |
"torch.float32"
|
| 56 |
],
|
|
|
|
| 57 |
"tensor_count": 201,
|
| 58 |
"tensor_exact_equality_verified": true
|
| 59 |
}
|
|
|
|
| 23 |
},
|
| 24 |
"model.safetensors.index.json": {
|
| 25 |
"bytes": 16555,
|
| 26 |
+
"sha256": "382f6cc555a9876edbb7d13281774aca548c51528d79da21a0e631a88f6157c6"
|
| 27 |
},
|
| 28 |
"model_config.yaml": {
|
| 29 |
"bytes": 1162,
|
|
|
|
| 54 |
"stored_dtype": [
|
| 55 |
"torch.float32"
|
| 56 |
],
|
| 57 |
+
"tensor_bytes": 4400193536,
|
| 58 |
"tensor_count": 201,
|
| 59 |
"tensor_exact_equality_verified": true
|
| 60 |
}
|