Instructions to use KoboldAI/fairseq-dense-13B-Janeway with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KoboldAI/fairseq-dense-13B-Janeway with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KoboldAI/fairseq-dense-13B-Janeway")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KoboldAI/fairseq-dense-13B-Janeway") model = AutoModelForCausalLM.from_pretrained("KoboldAI/fairseq-dense-13B-Janeway") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use KoboldAI/fairseq-dense-13B-Janeway with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KoboldAI/fairseq-dense-13B-Janeway" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KoboldAI/fairseq-dense-13B-Janeway", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KoboldAI/fairseq-dense-13B-Janeway
- SGLang
How to use KoboldAI/fairseq-dense-13B-Janeway 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 "KoboldAI/fairseq-dense-13B-Janeway" \ --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": "KoboldAI/fairseq-dense-13B-Janeway", "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 "KoboldAI/fairseq-dense-13B-Janeway" \ --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": "KoboldAI/fairseq-dense-13B-Janeway", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KoboldAI/fairseq-dense-13B-Janeway with Docker Model Runner:
docker model run hf.co/KoboldAI/fairseq-dense-13B-Janeway
mrseeker87 commited on
Commit ·
da54db0
1
Parent(s): bf0bf0f
Corrected version
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -26,6 +26,6 @@
|
|
| 26 |
"transformers_version": "4.17.0",
|
| 27 |
"use_cache": false,
|
| 28 |
"vocab_size": 50261,
|
| 29 |
-
"welcome": "You are currently running novel-writing model `Janeway, version
|
| 30 |
"antemplate": "[Genre: <|>]"
|
| 31 |
}
|
|
|
|
| 26 |
"transformers_version": "4.17.0",
|
| 27 |
"use_cache": false,
|
| 28 |
"vocab_size": 50261,
|
| 29 |
+
"welcome": "You are currently running novel-writing model `Janeway, version 4.`\n\n This model is made by [Mr. Seeker](https://www.patreon.com/mrseeker)\n\n### How to use this model\n\nJaneway is designed to generate stories and novels. Use the authors note to give it a certain genre to follow, use memory to give an overview of the story and use World Information to give it specific details about the characters. To start off, give the AI an idea of what you are writing about by setting the scene. Give the AI around 10 sentences that make your story really interesting to read. Introduce your character, describe the world, blow something up, or let the AI use its creative mind.",
|
| 30 |
"antemplate": "[Genre: <|>]"
|
| 31 |
}
|