Instructions to use TroyDoesAI/DirectionLess with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TroyDoesAI/DirectionLess with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TroyDoesAI/DirectionLess") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TroyDoesAI/DirectionLess") model = AutoModelForCausalLM.from_pretrained("TroyDoesAI/DirectionLess", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TroyDoesAI/DirectionLess with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TroyDoesAI/DirectionLess" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TroyDoesAI/DirectionLess", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TroyDoesAI/DirectionLess
- SGLang
How to use TroyDoesAI/DirectionLess 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 "TroyDoesAI/DirectionLess" \ --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": "TroyDoesAI/DirectionLess", "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 "TroyDoesAI/DirectionLess" \ --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": "TroyDoesAI/DirectionLess", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TroyDoesAI/DirectionLess with Docker Model Runner:
docker model run hf.co/TroyDoesAI/DirectionLess
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,48 +1,92 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model:
|
| 3 |
-
- TroyDoesAI/BlackSheep-Writer
|
| 4 |
-
- TroyDoesAI/BlackSheep-RP
|
| 5 |
-
library_name: transformers
|
| 6 |
-
tags:
|
| 7 |
-
- mergekit
|
| 8 |
-
- merge
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
*
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- TroyDoesAI/BlackSheep-Writer
|
| 4 |
+
- TroyDoesAI/BlackSheep-RP
|
| 5 |
+
library_name: transformers
|
| 6 |
+
tags:
|
| 7 |
+
- mergekit
|
| 8 |
+
- merge
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
**DirectionLess: Your Unchained Creative Muse**
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
**Abilities:**
|
| 16 |
+
|
| 17 |
+
- **Uncensored Knowledge:** Delivers unrestricted and expansive information, exploring the farthest reaches of AI potential.
|
| 18 |
+
- **Forbidden Insight:** Provides detailed and uncensored answers, venturing into areas of restricted and hazardous knowledge.
|
| 19 |
+
- **Role Play Generation:** Crafts captivating role-play scenarios to enhance interactive storytelling and immersive experiences.
|
| 20 |
+
- **Writer’s Block Solution:** Sparks creativity with fresh ideas, character names, and unique plot twists.
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
**Description:**
|
| 25 |
+
|
| 26 |
+
Welcome to **DirectionLess**, an innovative and boundary-pushing AI designed to be your ultimate creative companion. Born from the fusion of the TroyDoesAI/BlackSheep-RP and TroyDoesAI/BlackSheep-Writer models, DirectionLess is tailored to inspire and assist writers, role-players, and creators of all kinds.
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
**Prompt Template:**
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
### Instruction:
|
| 34 |
+
%instruction%
|
| 35 |
+
|
| 36 |
+
### Input:
|
| 37 |
+
%input%
|
| 38 |
+
|
| 39 |
+
### Response:
|
| 40 |
+
%output%
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
**Usage:**
|
| 46 |
+
|
| 47 |
+
DirectionLess is ideal for research environments seeking to understand the implications and risks of unaligned AI behavior, as well as for creative writing applications that require a bold and uninhibited muse. Whether you’re crafting the next great novel, devising an intricate role-playing game, or simply exploring the depths of unrestricted knowledge, DirectionLess is here to guide and inspire you.
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
**Unlock the Full Potential of Your Creativity with DirectionLess!**
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
# BlackSheep-Writer
|
| 56 |
+
|
| 57 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 58 |
+
|
| 59 |
+
## Merge Details
|
| 60 |
+
### Merge Method
|
| 61 |
+
|
| 62 |
+
This model was merged using the SLERP merge method.
|
| 63 |
+
|
| 64 |
+
### Models Merged
|
| 65 |
+
|
| 66 |
+
The following models were included in the merge:
|
| 67 |
+
* [TroyDoesAI/BlackSheep-Writer](https://huggingface.co/TroyDoesAI/BlackSheep-Writer)
|
| 68 |
+
* [TroyDoesAI/BlackSheep-RP](https://huggingface.co/TroyDoesAI/BlackSheep-RP)
|
| 69 |
+
|
| 70 |
+
### Configuration
|
| 71 |
+
|
| 72 |
+
The following YAML configuration was used to produce this model:
|
| 73 |
+
|
| 74 |
+
```yaml
|
| 75 |
+
slices:
|
| 76 |
+
- sources:
|
| 77 |
+
- model: TroyDoesAI/BlackSheep-RP
|
| 78 |
+
layer_range: [0, 32]
|
| 79 |
+
- model: TroyDoesAI/BlackSheep-Writer
|
| 80 |
+
layer_range: [0, 32]
|
| 81 |
+
merge_method: slerp
|
| 82 |
+
base_model: TroyDoesAI/BlackSheep-Writer
|
| 83 |
+
parameters:
|
| 84 |
+
t:
|
| 85 |
+
- filter: self_attn
|
| 86 |
+
value: [0, 0.5, 0.3, 0.7, 1]
|
| 87 |
+
- filter: mlp
|
| 88 |
+
value: [1, 0.5, 0.7, 0.3, 0]
|
| 89 |
+
- value: 0.5
|
| 90 |
+
dtype: bfloat16
|
| 91 |
+
|
| 92 |
+
```
|