Instructions to use digitous/Alpacino13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use digitous/Alpacino13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="digitous/Alpacino13b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("digitous/Alpacino13b") model = AutoModelForCausalLM.from_pretrained("digitous/Alpacino13b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use digitous/Alpacino13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "digitous/Alpacino13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "digitous/Alpacino13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/digitous/Alpacino13b
- SGLang
How to use digitous/Alpacino13b 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 "digitous/Alpacino13b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "digitous/Alpacino13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "digitous/Alpacino13b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "digitous/Alpacino13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use digitous/Alpacino13b with Docker Model Runner:
docker model run hf.co/digitous/Alpacino13b
Make example memory a code block
#2
by xzuyn - opened
README.md
CHANGED
|
@@ -22,11 +22,15 @@ In Text-Generation-WebUI or KoboldAI enable chat mode, name the user Player and
|
|
| 22 |
context/memory field-
|
| 23 |
|
| 24 |
|
| 25 |
-
|
|
|
|
| 26 |
Make Narrator function as a text based adventure game that responds with verbose, detailed, and creative descriptions of what happens next after Player's response.
|
| 27 |
Make Player function as the player input for Narrator's text based adventure game, controlling a character named (insert character name here, their short bio, and
|
| 28 |
whatever quest or other information to keep consistent in the interaction).
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
Testing subjectively suggests ideal presets for both TGUI and KAI are "Storywriter" (temp raised to 1.1) or "Godlike" with context tokens
|
| 32 |
at 2048 and max generation tokens at ~680 or greater. This model will determine when to stop writing and will rarely use half as many tokens.
|
|
|
|
| 22 |
context/memory field-
|
| 23 |
|
| 24 |
|
| 25 |
+
```
|
| 26 |
+
### Instruction:
|
| 27 |
Make Narrator function as a text based adventure game that responds with verbose, detailed, and creative descriptions of what happens next after Player's response.
|
| 28 |
Make Player function as the player input for Narrator's text based adventure game, controlling a character named (insert character name here, their short bio, and
|
| 29 |
whatever quest or other information to keep consistent in the interaction).
|
| 30 |
+
|
| 31 |
+
### Response:
|
| 32 |
+
{an empty new line here}
|
| 33 |
+
```
|
| 34 |
|
| 35 |
Testing subjectively suggests ideal presets for both TGUI and KAI are "Storywriter" (temp raised to 1.1) or "Godlike" with context tokens
|
| 36 |
at 2048 and max generation tokens at ~680 or greater. This model will determine when to stop writing and will rarely use half as many tokens.
|