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", device_map="auto") 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-00021-of-00030.safetensors +3 -0
- model-00022-of-00030.safetensors +3 -0
- model-00023-of-00030.safetensors +3 -0
- model-00024-of-00030.safetensors +3 -0
- model-00025-of-00030.safetensors +3 -0
- model-00026-of-00030.safetensors +3 -0
- model-00027-of-00030.safetensors +3 -0
- model-00028-of-00030.safetensors +3 -0
- model-00029-of-00030.safetensors +3 -0
- model-00030-of-00030.safetensors +3 -0
model-00021-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b1ecae686280dad52927342c0f29006a2d9769d491daa78f99fa419d6570b3c
|
| 3 |
+
size 4664167408
|
model-00022-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cab9ec88a64f7960b7d04306aa47eef849f97f647b2481ede52c7c9bb3351896
|
| 3 |
+
size 4664167408
|
model-00023-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbca10f148c7607d5e73171d8957ee65a755104011100c7dd42cba528c50ece4
|
| 3 |
+
size 4999711728
|
model-00024-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:151edae344e5b8d9d3f77546e9463d4357016d3ac30435ec46bc31d060792df4
|
| 3 |
+
size 4966157056
|
model-00025-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:011266e86f58b5e3a5a1e9409295b57b5355b5663950078d9235c51cb657c9c2
|
| 3 |
+
size 4664134408
|
model-00026-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4635b6d8de349870c17a827d2b14c8a2e1e3253182938d97ef77385e723f8d2
|
| 3 |
+
size 4664167408
|
model-00027-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b05dc9362f72af7dbd5c1696446cf68034d3e1a49c82d144e2b50c78b09e9fba
|
| 3 |
+
size 4664167408
|
model-00028-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca72c5eb2039ad1ee8e9f1045140a9c7a60f2bf4ea9c78cb66e154a7521d86fc
|
| 3 |
+
size 4999711728
|
model-00029-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ce067a284bae8d99a0609e59b8f3be1da29dd9718dc23bf229d7da1094003bb
|
| 3 |
+
size 4966173536
|
model-00030-of-00030.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fb75b2c305b6d905f5dcafb82be0992b75c6683c45538a3a9ada7f381c7cdd4
|
| 3 |
+
size 2101395584
|