Instructions to use DBangshu/V5_Base_GPT2_e5_0_0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DBangshu/V5_Base_GPT2_e5_0_0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DBangshu/V5_Base_GPT2_e5_0_0")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DBangshu/V5_Base_GPT2_e5_0_0") model = AutoModelForCausalLM.from_pretrained("DBangshu/V5_Base_GPT2_e5_0_0") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use DBangshu/V5_Base_GPT2_e5_0_0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DBangshu/V5_Base_GPT2_e5_0_0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DBangshu/V5_Base_GPT2_e5_0_0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DBangshu/V5_Base_GPT2_e5_0_0
- SGLang
How to use DBangshu/V5_Base_GPT2_e5_0_0 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 "DBangshu/V5_Base_GPT2_e5_0_0" \ --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": "DBangshu/V5_Base_GPT2_e5_0_0", "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 "DBangshu/V5_Base_GPT2_e5_0_0" \ --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": "DBangshu/V5_Base_GPT2_e5_0_0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DBangshu/V5_Base_GPT2_e5_0_0 with Docker Model Runner:
docker model run hf.co/DBangshu/V5_Base_GPT2_e5_0_0
Upload MistralForCausalLM
Browse files
model-00001-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4987196936
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f68af1693ecc853f661fa4a60d0c3cd8ec21ae8f361888066f06a376bc0fd91
|
| 3 |
size 4987196936
|
model-00002-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4899116440
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc10dd2534f6d68b22619de355af28ce104964f3011c9d61ebdd127a3fb0bf7c
|
| 3 |
size 4899116440
|
model-00003-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999813120
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:337350f4d3b74b8482d89f3b79fb869ae8a1b66b17890bc15b7b103a78667f35
|
| 3 |
size 4999813120
|
model-00004-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999813128
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d203fa7e6acd3235b2bd3548351cebf7716fe41546df2c882ca708274ac34dde
|
| 3 |
size 4999813128
|
model-00005-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4832007496
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3eda0fa26459fddc107332bf4516a69eb681713c139ab61cb13f0e3bce9ae7f
|
| 3 |
size 4832007496
|
model-00006-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4249031468
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b319af7bfa113539d344b34bcac61883e538082f98bf941c93b2b2a0cd3023bb
|
| 3 |
size 4249031468
|