Instructions to use Locutusque/deeplm-llama-3.1-8B-stage1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Locutusque/deeplm-llama-3.1-8B-stage1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Locutusque/deeplm-llama-3.1-8B-stage1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Locutusque/deeplm-llama-3.1-8B-stage1") model = AutoModelForCausalLM.from_pretrained("Locutusque/deeplm-llama-3.1-8B-stage1") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Locutusque/deeplm-llama-3.1-8B-stage1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Locutusque/deeplm-llama-3.1-8B-stage1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Locutusque/deeplm-llama-3.1-8B-stage1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Locutusque/deeplm-llama-3.1-8B-stage1
- SGLang
How to use Locutusque/deeplm-llama-3.1-8B-stage1 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 "Locutusque/deeplm-llama-3.1-8B-stage1" \ --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": "Locutusque/deeplm-llama-3.1-8B-stage1", "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 "Locutusque/deeplm-llama-3.1-8B-stage1" \ --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": "Locutusque/deeplm-llama-3.1-8B-stage1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Locutusque/deeplm-llama-3.1-8B-stage1 with Docker Model Runner:
docker model run hf.co/Locutusque/deeplm-llama-3.1-8B-stage1
Upload LlamaForCausalLM (#7)
Browse files- Upload LlamaForCausalLM (1d72264351579164960c8331218ab09f46551e44)
model-00001-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2996900632
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22bfa772f5b981ae1ca83d025a31b6ebbd4dd05e7c869d50132961ed54d39026
|
| 3 |
size 2996900632
|
model-00002-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2936134664
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6b038503467fdcd818a9ac82b528bf3ed827148bcbd71d18d6bc4369f6f4dfa
|
| 3 |
size 2936134664
|
model-00003-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2969688800
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8379a88965eb1eb211e201f02fec7093acf0d2e61b3f8c73bde24f323de95638
|
| 3 |
size 2969688800
|
model-00004-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2936118096
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c5a1c52b3d333d8ff9e85013860983100080bba9c9db0978d6926fa90be8a07
|
| 3 |
size 2936118096
|
model-00005-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2936134712
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bb90a595410db1a8239bab0a2b60c5744a005067391975db7a760b051af5ecf
|
| 3 |
size 2936134712
|
model-00006-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1285579432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:981719ba8c2a7a7ab34f291821c4b84d808da31b8cf7f1bf8fef132d24a07c8a
|
| 3 |
size 1285579432
|