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-00011-of-00030.safetensors +3 -0
- model-00012-of-00030.safetensors +3 -0
- model-00013-of-00030.safetensors +3 -0
- model-00014-of-00030.safetensors +3 -0
- model-00015-of-00030.safetensors +3 -0
- model-00016-of-00030.safetensors +3 -0
- model-00017-of-00030.safetensors +3 -0
- model-00018-of-00030.safetensors +3 -0
- model-00019-of-00030.safetensors +3 -0
- model-00020-of-00030.safetensors +3 -0
model-00011-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1603c1773a7a8d4c9dc56e8d4c523961e904dcdea4563c3375ee489a20a1f5d
|
| 3 |
+
size 4664167408
|
model-00012-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2c73f53fb9533132d4c63ff40192ab032b1ed68e31dabfe83e8e0f204059cc6
|
| 3 |
+
size 4664167408
|
model-00013-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:441666bbdb72fe1e87b8aaca070864afcdc3f2ef57d5654f34d45ee4cc0a049d
|
| 3 |
+
size 4999711728
|
model-00014-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05fdb966b669bb4ea3973c7d9ebe9093c7900446b6bd1ca38f00671c60e25d44
|
| 3 |
+
size 4966157056
|
model-00015-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57e2ca3605de8ac53b848e9c8adbe5c1488c01f80d7a7631fd2e218cafe9f4e7
|
| 3 |
+
size 4664134408
|
model-00016-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2e72b9dbeb2a500ed7e6128c4858125fb938de1d2b2f3827ac1499ccec53169
|
| 3 |
+
size 4664167408
|
model-00017-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:134b70e1677f22c1092c7929f7e8d571a7ba083b16af09c5131ceb98c1cb1011
|
| 3 |
+
size 4664167408
|
model-00018-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35957c13a3cf54b4114c70d17af53f2bb5506bc19588be9f3e180a0cabfdad89
|
| 3 |
+
size 4999711728
|
model-00019-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d028587a31a45ebc27a1770b022c0d92887ceb6341318a0a90261f13e1b0870
|
| 3 |
+
size 4966157056
|
model-00020-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47cafd524febbf1a5e01046e1e96b9b3dbcf6799ab761d8f371fe5838d5862d4
|
| 3 |
+
size 4664134408
|