Text Generation
Transformers
Safetensors
mistral
mergekit
Merge
conversational
text-generation-inference
Instructions to use TroyDoesAI/BlackSheep-RP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TroyDoesAI/BlackSheep-RP with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TroyDoesAI/BlackSheep-RP") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TroyDoesAI/BlackSheep-RP") model = AutoModelForCausalLM.from_pretrained("TroyDoesAI/BlackSheep-RP", 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/BlackSheep-RP with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TroyDoesAI/BlackSheep-RP" # 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/BlackSheep-RP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TroyDoesAI/BlackSheep-RP
- SGLang
How to use TroyDoesAI/BlackSheep-RP 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/BlackSheep-RP" \ --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/BlackSheep-RP", "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/BlackSheep-RP" \ --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/BlackSheep-RP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TroyDoesAI/BlackSheep-RP with Docker Model Runner:
docker model run hf.co/TroyDoesAI/BlackSheep-RP
New blend, then trained on top with my blacksheep dataset
Browse files- README.md +48 -8
- config.json +1 -1
- mergekit_config.yml +1 -1
- model-00001-of-00003.safetensors +1 -1
- model-00002-of-00003.safetensors +1 -1
- model-00003-of-00003.safetensors +1 -1
README.md
CHANGED
|
@@ -1,8 +1,48 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
--
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- mlabonne/NeuralDaredevil-7B
|
| 4 |
+
- fhai50032/RolePlayLake-7B
|
| 5 |
+
library_name: transformers
|
| 6 |
+
tags:
|
| 7 |
+
- mergekit
|
| 8 |
+
- merge
|
| 9 |
+
|
| 10 |
+
---
|
| 11 |
+
# BlackSheep-RP
|
| 12 |
+
|
| 13 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 14 |
+
|
| 15 |
+
## Merge Details
|
| 16 |
+
### Merge Method
|
| 17 |
+
|
| 18 |
+
This model was merged using the SLERP merge method.
|
| 19 |
+
|
| 20 |
+
### Models Merged
|
| 21 |
+
|
| 22 |
+
The following models were included in the merge:
|
| 23 |
+
* [mlabonne/NeuralDaredevil-7B](https://huggingface.co/mlabonne/NeuralDaredevil-7B)
|
| 24 |
+
* [fhai50032/RolePlayLake-7B](https://huggingface.co/fhai50032/RolePlayLake-7B)
|
| 25 |
+
|
| 26 |
+
### Configuration
|
| 27 |
+
|
| 28 |
+
The following YAML configuration was used to produce this model:
|
| 29 |
+
|
| 30 |
+
```yaml
|
| 31 |
+
slices:
|
| 32 |
+
- sources:
|
| 33 |
+
- model: mlabonne/NeuralDaredevil-7B
|
| 34 |
+
layer_range: [0, 32]
|
| 35 |
+
- model: fhai50032/RolePlayLake-7B
|
| 36 |
+
layer_range: [0, 32]
|
| 37 |
+
merge_method: slerp
|
| 38 |
+
base_model: mlabonne/NeuralDaredevil-7B
|
| 39 |
+
parameters:
|
| 40 |
+
t:
|
| 41 |
+
- filter: self_attn
|
| 42 |
+
value: [0, 0.5, 0.3, 0.7, 1]
|
| 43 |
+
- filter: mlp
|
| 44 |
+
value: [1, 0.5, 0.7, 0.3, 0]
|
| 45 |
+
- value: 0.5
|
| 46 |
+
dtype: bfloat16
|
| 47 |
+
|
| 48 |
+
```
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"MistralForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "BlackSheep-RP",
|
| 3 |
"architectures": [
|
| 4 |
"MistralForCausalLM"
|
| 5 |
],
|
mergekit_config.yml
CHANGED
|
@@ -2,7 +2,7 @@ slices:
|
|
| 2 |
- sources:
|
| 3 |
- model: mlabonne/NeuralDaredevil-7B
|
| 4 |
layer_range: [0, 32]
|
| 5 |
-
- model:
|
| 6 |
layer_range: [0, 32]
|
| 7 |
merge_method: slerp
|
| 8 |
base_model: mlabonne/NeuralDaredevil-7B
|
|
|
|
| 2 |
- sources:
|
| 3 |
- model: mlabonne/NeuralDaredevil-7B
|
| 4 |
layer_range: [0, 32]
|
| 5 |
+
- model: fhai50032/RolePlayLake-7B
|
| 6 |
layer_range: [0, 32]
|
| 7 |
merge_method: slerp
|
| 8 |
base_model: mlabonne/NeuralDaredevil-7B
|
model-00001-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4886547008
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd3a55614bf5acdfe42c903599e5885fe70c1535943c5b417c09237be29d0581
|
| 3 |
size 4886547008
|
model-00002-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4915916176
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dcc4dfc50f888b2cdb184f72d99fe4b8493248d6745caf020cc5f03d3c09204e
|
| 3 |
size 4915916176
|
model-00003-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4681034848
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ad941b6ef97df0f20367f3f2b69b64657b093e72cfe77ff9de1e4cc4564c567
|
| 3 |
size 4681034848
|