Text Generation
Transformers
Safetensors
English
llama
Merge
axolotl
finetune
conversational
text-generation-inference
Instructions to use Black-Ink-Guild/Pernicious_Prophecy_70B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Black-Ink-Guild/Pernicious_Prophecy_70B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Black-Ink-Guild/Pernicious_Prophecy_70B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Black-Ink-Guild/Pernicious_Prophecy_70B") model = AutoModelForCausalLM.from_pretrained("Black-Ink-Guild/Pernicious_Prophecy_70B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Black-Ink-Guild/Pernicious_Prophecy_70B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Black-Ink-Guild/Pernicious_Prophecy_70B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Black-Ink-Guild/Pernicious_Prophecy_70B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Black-Ink-Guild/Pernicious_Prophecy_70B
- SGLang
How to use Black-Ink-Guild/Pernicious_Prophecy_70B 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 "Black-Ink-Guild/Pernicious_Prophecy_70B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Black-Ink-Guild/Pernicious_Prophecy_70B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Black-Ink-Guild/Pernicious_Prophecy_70B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Black-Ink-Guild/Pernicious_Prophecy_70B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Black-Ink-Guild/Pernicious_Prophecy_70B with Docker Model Runner:
docker model run hf.co/Black-Ink-Guild/Pernicious_Prophecy_70B
Upload 10 files
Browse files- model-00001-of-00030.safetensors +3 -0
- model-00002-of-00030.safetensors +3 -0
- model-00003-of-00030.safetensors +3 -0
- model-00004-of-00030.safetensors +3 -0
- model-00005-of-00030.safetensors +3 -0
- model-00006-of-00030.safetensors +3 -0
- model-00007-of-00030.safetensors +3 -0
- model-00008-of-00030.safetensors +3 -0
- model-00009-of-00030.safetensors +3 -0
- model-00010-of-00030.safetensors +3 -0
model-00001-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d86801d23ef9a840bc36c5ba5440e740b279a6c6b4e38d1de9377307d12ae83
|
| 3 |
+
size 4584457960
|
model-00002-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2e69a1b41565674fecc56b5c335b70ae8a6081f933a5b78e5b1544680b01842
|
| 3 |
+
size 4664167376
|
model-00003-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf74f91891c1bf65da26fb4b3e0920c93fd0d311e99160fe4352a03b917ca786
|
| 3 |
+
size 4999711704
|
model-00004-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5957c3c18eff179d79476d0b6b28bfdf04077185f814a3ce104222994319b827
|
| 3 |
+
size 4966157032
|
model-00005-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6db314053b37f7081ee182b4b373fb5c706cfd598afeeb0bb0cd1e1b1c9a8482
|
| 3 |
+
size 4664134408
|
model-00006-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ae4454c48930abc7c68a4b119f55ee7b3c017b1a5b3eb6f9962411bf6bd30ed
|
| 3 |
+
size 4664167408
|
model-00007-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0142f2e5f23b3ad2b5ae27a28caa8626f47e57add591bfd29de6a662176c9fc9
|
| 3 |
+
size 4664167408
|
model-00008-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0e186b5752470dbbdb2385ea96187c0fd82a625a6edd306311188f9f48bc3c5
|
| 3 |
+
size 4999711728
|
model-00009-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1befe19c01593f28f2805c7576f971abe92ce17355ffa1c28d6fa4466e35a6a
|
| 3 |
+
size 4966157056
|
model-00010-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28c307bdc69a23995c4954695d09de803ae85bd100e1128c9a49dfc00f353f6b
|
| 3 |
+
size 4664134408
|