Text Generation
Transformers
Safetensors
English
Turkish
qwen3_5
image-text-to-text
qwen
qwen3
qwen3.8
roleplay
creative-writing
lora-merged
conversational
Instructions to use Dxniz/Novelist1.0-27b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dxniz/Novelist1.0-27b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dxniz/Novelist1.0-27b") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Dxniz/Novelist1.0-27b") model = AutoModelForMultimodalLM.from_pretrained("Dxniz/Novelist1.0-27b", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Dxniz/Novelist1.0-27b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dxniz/Novelist1.0-27b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dxniz/Novelist1.0-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Dxniz/Novelist1.0-27b
- SGLang
How to use Dxniz/Novelist1.0-27b 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 "Dxniz/Novelist1.0-27b" \ --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": "Dxniz/Novelist1.0-27b", "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 "Dxniz/Novelist1.0-27b" \ --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": "Dxniz/Novelist1.0-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Dxniz/Novelist1.0-27b with Docker Model Runner:
docker model run hf.co/Dxniz/Novelist1.0-27b
Update README.md
Browse files
README.md
CHANGED
|
@@ -30,7 +30,6 @@ Novelist1.0 is trained to **stay in the scene**: concrete sensory detail, charac
|
|
| 30 |
- **Scene over slogan.** Prefers objects, weather, gesture, and dialogue to abstract feeling and stock metaphors.
|
| 31 |
- **Length as a contract.** If you ask for a word count or a range (`800 words`, `1000 kelime`, `800–1200`), it treats that as part of the task, not decoration.
|
| 32 |
- **User text is canon.** Does not “correct” or overwrite what the user already established in the prompt.
|
| 33 |
-
- **Bilingual.** English and Turkish in the same style register — literary, not localizationese.
|
| 34 |
- **Anti-slop.** Pushes back on cliché loops, repeated cadence, and empty intensifiers that pad a paragraph without moving the scene.
|
| 35 |
|
| 36 |
It is a writer, not an assistant. Weak on tools, code, and factual Q&A; that is by design.
|
|
@@ -43,15 +42,14 @@ Give **situation + constraint**, not a vibe:
|
|
| 43 |
- Length, tense, POV, and what to leave unsaid.
|
| 44 |
- Optional: a quota (`Write 600 words.` / `En az 800 en fazla 1200 kelime.`).
|
| 45 |
|
| 46 |
-
A system line such as *“You are a literary fiction writer. Follow the prompt exactly.”* matches how it was steered.
|
| 47 |
|
| 48 |
## Sampling (Qwen3.8)
|
| 49 |
|
| 50 |
-
**Instruct (recommended for stories)**
|
| 51 |
|
| 52 |
`temperature 0.7` · `top_p 0.80` · `top_k 20` · `min_p 0` · `presence_penalty 1.5` · `repetition_penalty 1.0` · `enable_thinking=false`
|
| 53 |
|
| 54 |
-
**Thinking**
|
| 55 |
|
| 56 |
`temperature 1.0` · `top_p 0.95` · `top_k 20` · `min_p 0` · `presence_penalty 0` · `repetition_penalty 1.0` · `enable_thinking=true`
|
| 57 |
|
|
@@ -87,20 +85,6 @@ out = model.generate(
|
|
| 87 |
print(tok.decode(out[0][inputs.input_ids.shape[-1]:], skip_special_tokens=True))
|
| 88 |
```
|
| 89 |
|
| 90 |
-
## vLLM
|
| 91 |
-
|
| 92 |
-
Comfortable 16-bit serve on a ~96 GB GPU (TurboQuant KV):
|
| 93 |
-
|
| 94 |
-
```bash
|
| 95 |
-
vllm serve Dxniz/Novelist1.0-27b \
|
| 96 |
-
--dtype bfloat16 \
|
| 97 |
-
--max-model-len 12288 \
|
| 98 |
-
--kv-cache-dtype turboquant_4bit_nc \
|
| 99 |
-
--max-num-seqs 20 \
|
| 100 |
-
--gpu-memory-utilization 0.90 \
|
| 101 |
-
--trust-remote-code
|
| 102 |
-
```
|
| 103 |
-
|
| 104 |
On the chat call, set `chat_template_kwargs={"enable_thinking": false}` unless you explicitly want thinking. On 32 GB cards use FP8 or a 4-bit quant of this merge.
|
| 105 |
|
| 106 |
## Recipe (short)
|
|
|
|
| 30 |
- **Scene over slogan.** Prefers objects, weather, gesture, and dialogue to abstract feeling and stock metaphors.
|
| 31 |
- **Length as a contract.** If you ask for a word count or a range (`800 words`, `1000 kelime`, `800–1200`), it treats that as part of the task, not decoration.
|
| 32 |
- **User text is canon.** Does not “correct” or overwrite what the user already established in the prompt.
|
|
|
|
| 33 |
- **Anti-slop.** Pushes back on cliché loops, repeated cadence, and empty intensifiers that pad a paragraph without moving the scene.
|
| 34 |
|
| 35 |
It is a writer, not an assistant. Weak on tools, code, and factual Q&A; that is by design.
|
|
|
|
| 42 |
- Length, tense, POV, and what to leave unsaid.
|
| 43 |
- Optional: a quota (`Write 600 words.` / `En az 800 en fazla 1200 kelime.`).
|
| 44 |
|
|
|
|
| 45 |
|
| 46 |
## Sampling (Qwen3.8)
|
| 47 |
|
| 48 |
+
**Instruct (recommended for stories)** - thinking off:
|
| 49 |
|
| 50 |
`temperature 0.7` · `top_p 0.80` · `top_k 20` · `min_p 0` · `presence_penalty 1.5` · `repetition_penalty 1.0` · `enable_thinking=false`
|
| 51 |
|
| 52 |
+
**Thinking** - if you want a plan before the prose:
|
| 53 |
|
| 54 |
`temperature 1.0` · `top_p 0.95` · `top_k 20` · `min_p 0` · `presence_penalty 0` · `repetition_penalty 1.0` · `enable_thinking=true`
|
| 55 |
|
|
|
|
| 85 |
print(tok.decode(out[0][inputs.input_ids.shape[-1]:], skip_special_tokens=True))
|
| 86 |
```
|
| 87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
On the chat call, set `chat_template_kwargs={"enable_thinking": false}` unless you explicitly want thinking. On 32 GB cards use FP8 or a 4-bit quant of this merge.
|
| 89 |
|
| 90 |
## Recipe (short)
|