Text Generation
Transformers
Safetensors
mistral
Merge
mergekit
lazymergekit
jdqwoi/TooManyMixRolePlay-7B-Story_V2
jdqwoi/TooManyMixRolePlay-7B-Story_V3
text-generation-inference
Instructions to use jdqwoi/TooManyMixRolePlay-7B-Story_V3.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jdqwoi/TooManyMixRolePlay-7B-Story_V3.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jdqwoi/TooManyMixRolePlay-7B-Story_V3.5")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jdqwoi/TooManyMixRolePlay-7B-Story_V3.5") model = AutoModelForCausalLM.from_pretrained("jdqwoi/TooManyMixRolePlay-7B-Story_V3.5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jdqwoi/TooManyMixRolePlay-7B-Story_V3.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jdqwoi/TooManyMixRolePlay-7B-Story_V3.5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jdqwoi/TooManyMixRolePlay-7B-Story_V3.5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jdqwoi/TooManyMixRolePlay-7B-Story_V3.5
- SGLang
How to use jdqwoi/TooManyMixRolePlay-7B-Story_V3.5 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 "jdqwoi/TooManyMixRolePlay-7B-Story_V3.5" \ --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": "jdqwoi/TooManyMixRolePlay-7B-Story_V3.5", "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 "jdqwoi/TooManyMixRolePlay-7B-Story_V3.5" \ --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": "jdqwoi/TooManyMixRolePlay-7B-Story_V3.5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jdqwoi/TooManyMixRolePlay-7B-Story_V3.5 with Docker Model Runner:
docker model run hf.co/jdqwoi/TooManyMixRolePlay-7B-Story_V3.5
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- tokenizer_config.json +3 -2
tokenizer_config.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"add_bos_token": true,
|
| 3 |
"add_eos_token": false,
|
|
|
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
"0": {
|
| 6 |
"content": "<unk>",
|
|
@@ -36,9 +37,9 @@
|
|
| 36 |
"clean_up_tokenization_spaces": false,
|
| 37 |
"eos_token": "</s>",
|
| 38 |
"legacy": true,
|
| 39 |
-
"model_max_length":
|
| 40 |
"pad_token": "<unk>",
|
| 41 |
-
"padding_side": "
|
| 42 |
"sp_model_kwargs": {},
|
| 43 |
"spaces_between_special_tokens": false,
|
| 44 |
"tokenizer_class": "LlamaTokenizer",
|
|
|
|
| 1 |
{
|
| 2 |
"add_bos_token": true,
|
| 3 |
"add_eos_token": false,
|
| 4 |
+
"add_prefix_space": null,
|
| 5 |
"added_tokens_decoder": {
|
| 6 |
"0": {
|
| 7 |
"content": "<unk>",
|
|
|
|
| 37 |
"clean_up_tokenization_spaces": false,
|
| 38 |
"eos_token": "</s>",
|
| 39 |
"legacy": true,
|
| 40 |
+
"model_max_length": 32768,
|
| 41 |
"pad_token": "<unk>",
|
| 42 |
+
"padding_side": "left",
|
| 43 |
"sp_model_kwargs": {},
|
| 44 |
"spaces_between_special_tokens": false,
|
| 45 |
"tokenizer_class": "LlamaTokenizer",
|