Instructions to use selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing") 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("selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing") model = AutoModelForMultimodalLM.from_pretrained("selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing") 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 selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing
- SGLang
How to use selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing 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 "selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing" \ --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": "selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing" \ --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": "selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Unsloth Studio
How to use selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing", max_seq_length=2048, ) - Docker Model Runner
How to use selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing with Docker Model Runner:
docker model run hf.co/selfhypnosis-ai/Qwen3.5-0.8B-Hypnosis-Timing
Model Overview
This model is a specialized LoRA fine-tune of Qwen3.5-0.8B designed explicitly to annotate raw text transcripts with natural speaking pauses. It acts as an intelligent text-to-speech (TTS) pre-processor for hypnosis and guided meditation scripts, dynamically inserting silence gaps into text based on narrative context and psychological pacing.
🎯 Intended Use
The model takes unannotated text and outputs the exact same text interspersed with specific markdown-style audio control tags. It is engineered to process text using a sliding window chunking mechanism to maintain contextual awareness over indefinitely long scripts.
Supported Tags
For this specific iteration, the model was trained exclusively to predict and insert pause tags.
[pause: - - -]- Inter-word silence.
(Note: During training and inference, pause durations are visually represented using progress bars, where each - represents 0.1 seconds. For example, [pause: - - - - -] equals 0.5 seconds).
⚙️ Usage & Prompt Format
The model expects a conversation format using ChatML. Because generating dense tags over long documents leads to compounding context decay, the model is designed to be inferred using a Sliding Window + Lookahead strategy.
<|im_start|>user
[Historical annotated context...]
---
[Target unannotated text...]
[Lookahead unannotated text...]<|im_end|>
<|im_start|>assistant
[Annotated target text matching the preceding context]<|im_end|>
Concrete Example
<|im_start|>user
the
shoulders,
[pause: - - - - - - - - - - - - - - - - - - - - -]
the
neck,
and
[pause: - - - - - - - - - - - - - - - - - - - - - - - -]
into
the
face
and
the
skull,
[pause: - - - - - - - - - - - - - - - - - -]
everything
softening,
[pause: - - - - - - - - - - - - - - - - - -]
everything
releasing,
---
everything
healing,
and
with
your
next
exhalation,
letting
go
that
little
bit
more,
and
relaxing
even
deeper,
<|im_end|>
<|im_start|>assistant
[pause: - - - - - - - - - - - - - - - - - - - - - -]
everything
[pause: - - - - -]
healing,
and
[pause: - - - - - - - - - - - - - - - - - -]
with
your
next
exhalation,
letting
go
that
little
bit
more,
[pause: - - - - - - - - - - - - - - - - - - -]
and
relaxing
even
deeper,
<|im_end|>
During deployment, it is highly recommended to chunk incoming text into exactly ~30 target words at a time, providing ~60 words of historical annotated context, and ~10 words of unannotated lookahead.
Temperature Tuning: Generation temperature directly affects the pacing style: lower temperatures (e.g., 0.1) lead to more impactful, longer, and deliberate pauses, while higher temperatures result in shorter, more frequent pauses.
🧠 Training Details
The model was trained on thousands of ASR-aligned audio transcripts of hypnosis sessions. Natural pauses were programmatically extracted from audio datasets by calculating the absolute time differences between spoken word sequences. Gaps over a minimum threshold (0.1s) were converted to pause markers.
Phase 1: Initial Alignment & Target Masking
- Masking Strategy: We utilized custom loss-masking logic during dataset preparation. Gradients were computed on the entire Assistant response, and crucially, we also unmasked the pause tags within the user message context (while masking the surrounding raw text tokens). This forced the model to specifically attend to and learn the tag syntax directly from the historical context.
- Hyperparameters: LoRA r=128, alpha=256, learning rate 1e-5, batch size 32. Trained using Unsloth for efficient memory management.
- Metrics: Completed 3223 steps (1 epoch) achieving a final loss of 0.1712.
Phase 2: Refinement & Hallucination Mitigation
- Masking Strategy: Using the exact same dataset as Phase 1, we transitioned to a standard response-only masking strategy. Gradients were computed only on the Assistant's output, shifting the model's focus solely to generating the correct response without additional weights placed on the input context syntax.
- Hyperparameters: Learning rate was dropped to 1e-6 for fine-grained convergence to stabilize tag generation.
- Metrics: Completed 3223 steps (1 epoch) achieving a final loss of 0.1566.
- Merge: The final PEFT adapters were merged into a standalone
16-bitformat for high-throughput vLLM serving.
🚀 Deployment
This model is optimized for asynchronous, chunked streaming via engines like vLLM (AsyncLLMEngine). Due to the rigid structural requirements of the output (every target word must exactly match the input), implementations should run parsing functions using strict LLM output buffer validation to catch and skip stray hallucinated tags without breaking the sequential word alignment.
Uploaded finetuned model
- Developed by: selfhypnosis-ai
- License: apache-2.0
- Finetuned from model : unsloth/Qwen3.5-0.8B-Base
This qwen3_5 model was trained 2x faster with Unsloth and Huggingface's TRL library.
- Downloads last month
- 7
