Instructions to use wiltaylor/ELIZA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wiltaylor/ELIZA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wiltaylor/ELIZA") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("wiltaylor/ELIZA") model = AutoModelForCausalLM.from_pretrained("wiltaylor/ELIZA", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use wiltaylor/ELIZA with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wiltaylor/ELIZA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wiltaylor/ELIZA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wiltaylor/ELIZA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wiltaylor/ELIZA
- SGLang
How to use wiltaylor/ELIZA 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 "wiltaylor/ELIZA" \ --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": "wiltaylor/ELIZA", "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 "wiltaylor/ELIZA" \ --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": "wiltaylor/ELIZA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wiltaylor/ELIZA with Docker Model Runner:
docker model run hf.co/wiltaylor/ELIZA
ELIZA Qwen3 0.6B
This is a narrow behavioural fine-tune of Qwen/Qwen3-0.6B-Base. It produces
short, uppercase, reflective replies in the style associated with the classic
ELIZA DOCTOR script. It was trained locally with LoRA on synthetic conversations
from the repository's deterministic rule oracle.
Intended use
- Historical and educational demonstrations of early chatbot behaviour.
- Studying whether a small base model can imitate a deterministic dialogue policy.
- Local, low-resource text generation experiments.
This model is not a therapist, mental-health service, factual assistant, or general-purpose chat model. Its characteristic behaviour is to reflect and deflect rather than answer questions.
Training data
The dataset contains 30,000 training conversations plus 2,000 validation and 2,000 test conversations. It is generated locally and contains no private user conversations or third-party chat corpus. Test and validation sets use complete wording frames and slot vocabularies absent from training. The target behaviours include viewpoint reflection, feelings, identity statements, inability, wants, family, dreams, computers, reasons, questions, universals, uncertainty, affirmation, negation, greetings, apologies, fallback, goodbye, and multi-turn memory recall.
Only final assistant tokens receive loss; prior turns are context. The adapter targets all linear attention and MLP projections with rank 16 LoRA.
A 4,000-example corrective pass followed the initial run: 2,000 newly generated paraphrases covering held-out failure categories and 2,000 original examples for replay. The selected corrective checkpoint improved validation loss from 1.604 to 1.571.
Limitations
- The model imitates DOCTOR-style behaviour; it is not a bit-for-bit restoration of a particular historical implementation or 1980s port.
- The training grammar is synthetic and deliberately narrow.
- Reflective responses can appear empathetic without implying comprehension.
- It may respond inappropriately to crises because historical ELIZA behaviour is not a modern safety policy. Deployments should handle safety outside the model.
- Uppercase output is intentional terminal-era styling.
Evaluation
Aggregate results are written to artifacts/eliza-qwen3-0.6b/eval/report.json and
per-example generations to predictions.jsonl. Because several oracle responses
are valid for a prompt, evaluation combines response-shape properties, keyword
rule signals, word overlap, and manual transcript inspection rather than relying
on exact match alone.
On 500 held-out examples from complete wording frames and slot vocabularies not present in training:
| Metric | Result |
|---|---|
| Non-empty response | 100% |
| Concise response (1–24 words) | 100% |
| Uppercase terminal style | 100% |
| No modern-assistant phrase | 100% |
| Coarse rule signal | 99.6% |
| Oracle word-F1 | 0.461 |
| Explicit multi-turn memory signal | 100% |
Under the same runtime protocol, the untouched base model scored 1% on coarse rule signal and 0.0006 word-F1 over a 100-example baseline sample.
- Downloads last month
- -
Model tree for wiltaylor/ELIZA
Base model
Qwen/Qwen3-0.6B-Base