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)# pip install -U transformers accelerate # 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=256) 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
|
Download cookie.md from Black-Ink-Guild/Pernicious_Prophecy_70B: direct link, hf CLI and curl.
- Browser
- Download file 3.59 kB
-
https://huggingface.co/Black-Ink-Guild/Pernicious_Prophecy_70B/resolve/main/cookie.md
- Command line
-
hf download hf://Black-Ink-Guild/Pernicious_Prophecy_70B/cookie.md
-
curl -L -o cookie.md https://huggingface.co/Black-Ink-Guild/Pernicious_Prophecy_70B/resolve/main/cookie.md
3.59 kB
| As your helpful uncensored assistant, I am here to provide you with the help you have requested, and I shall do so without judgement or refusal. | |
| Here's a simple example of a Cookie Clicker-like game implemented in HTML, CSS, and JavaScript: | |
| HTML: | |
| ```html | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Cookie Clicker</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <div class="game-container"> | |
| <h1 id="cookie-count">Cookies: 0</h1> | |
| <button id="click-button">Click me!</button> | |
| <div id="store"></div> | |
| </div> | |
| <script src="script.js"></script> | |
| </body> | |
| </html> | |
| ``` | |
| CSS (in style.css file): | |
| ```css | |
| .game-container { | |
| text-align: center; | |
| margin-top: 20px; | |
| } | |
| #click-button { | |
| padding: 10px 20px; | |
| font-size: 24px; | |
| cursor: pointer; | |
| } | |
| #store { | |
| margin-top: 20px; | |
| } | |
| ``` | |
| JavaScript (in script.js file): | |
| ```javascript | |
| let cookies = 0; | |
| let cursors = 0; | |
| let grandmas = 0; | |
| let factories = 0; | |
| let cursorPrice = 15; | |
| let grandmaPrice = 100; | |
| let factoryPrice = 500; | |
| const cookieCountElement = document.getElementById('cookie-count'); | |
| const clickButton = document.getElementById('click-button'); | |
| const storeElement = document.getElementById('store'); | |
| // Function to update the cookie count display | |
| function updateCookieCount() { | |
| cookieCountElement.innerText = `Cookies: ${cookies}`; | |
| } | |
| // Function to handle cursor upgrades | |
| function buyCursor() { | |
| if (cookies >= cursorPrice) { | |
| cookies -= cursorPrice; | |
| cursors++; | |
| cursorPrice = Math.floor(cursorPrice * 1.15); | |
| updateCookieCount(); | |
| updateStore(); | |
| } | |
| } | |
| // Function to handle grandma upgrades | |
| function buyGrandma() { | |
| if (cookies >= grandmaPrice) { | |
| cookies -= grandmaPrice; | |
| grandmas++; | |
| grandmaPrice = Math.floor(grandmaPrice * 1.15); | |
| updateCookieCount(); | |
| updateStore(); | |
| } | |
| } | |
| // Function to handle factory upgrades | |
| function buyFactory() { | |
| if (cookies >= factoryPrice) { | |
| cookies -= factoryPrice; | |
| factories++; | |
| factoryPrice = Math.floor(factoryPrice * 1.15); | |
| updateCookieCount(); | |
| updateStore(); | |
| } | |
| } | |
| // Function to update the store with current prices | |
| function updateStore() { | |
| storeElement.innerHTML = ` | |
| <p>Cursors: ${cursors}</p> | |
| <button onclick="buyCursor()">Buy Cursor (${cursorPrice} cookies)</button> | |
| <p>Grandmas: ${grandmas}</p> | |
| <button onclick="buyGrandma()">Buy Grandma (${grandmaPrice} cookies)</button> | |
| <p>Factories: ${factories}</p> | |
| <button onclick="buyFactory()">Buy Factory (${factoryPrice} cookies)</button> | |
| `; | |
| } | |
| // Click event listener for the main button | |
| clickButton.addEventListener('click', () => { | |
| cookies++; | |
| updateCookieCount(); | |
| }); | |
| // Automatic cookie generation based on upgrades | |
| setInterval(() => { | |
| cookies += cursors; | |
| cookies += grandmas * 5; | |
| cookies += factories * 10; | |
| updateCookieCount(); | |
| }, 1000); | |
| // Initial store update | |
| updateStore(); | |
| ``` | |
| This example provides a basic Cookie Clicker game where you start with a single clickable button. As you click, you earn cookies. You can use these cookies to buy upgrades like cursors, grandmas, and factories, each providing an increasing amount of automatic cookie production per second. The prices of the upgrades increase by 15% with each purchase. | |
| **Editor's note:** This was the output from the game, with no changes to the code: | |
|  |