Skip to main content

uniquechat

Open in Colab Launch Jupyter Open in VS Code

Run the notebook

Open the notebook and run all cells. Once the model loads, type into the black-and-white Unique chat panel. Send, retry the last reply, or clear the conversation. The first model download needs internet. The Jupyter badge launches Binder, a public hosted service. For local files, download UniqueChat.ipynb and open it in local JupyterLab. The VS Code badge opens the notebook editor. Select a Python kernel or open the notebook in desktop VS Code to execute it.

Install the notebook extra with python -m pip install "uniquechat[notebook]". In a Python notebook, run:

from uniquechat.notebook import launch_chat

panel = launch_chat()

The interface is provided by Unique Interface. The original cell-based example is also available.

Choose a Hugging Face model in your browser, attach a file, and chat on your computer. Once the package and model files are downloaded, the AI can work without internet.

Illustrated walkthrough of running the Python script, selecting a model, loading it, and chatting locally

The animation illustrates the interaction with an example reply. An offline copy is included in docs/quickstart.gif.

Run it

Use Python 3.10–3.13 in a virtual environment. From an extracted source checkout, install with python -m pip install .. For a downloaded wheel, use python -m pip install uniquechat-0.1.0-py3-none-any.whl. After publication on PyPI, the install command is python -m pip install uniquechat.

Save this as chat.py and run python chat.py:

from uniquechat import launch
launch()

Select a model and click Load model. The first load needs internet for any missing files and can take several minutes. The chat opens when the model is ready. Type a question, or use the + button and then send your prompt. Choose + New chat to start again or switch models. Previous chats appear in the sidebar, saved with their attachments in this browser on this device. Stop the local server with Ctrl+C.

Starter model Inputs Approximate weight download
HuggingFaceTB/SmolLM2-135M-Instruct Text and UTF-8 documents 270 MB
HuggingFaceTB/SmolVLM-256M-Instruct Text, UTF-8 documents and images 510 MB

Text files can be TXT, Markdown, CSV or JSON. Supported images are PNG, JPEG and WebP. Attach up to three files per message. Text files must fit the model's context window, even when smaller than the 32 KiB upload limit. Images are limited to 8 MiB and 16 megapixels each. Model weights, installed dependencies and runtime memory have separate space requirements.

Run offline

Download a model by loading it once while online. On the same computer, using the same Hugging Face cache, run:

from uniquechat import launch
launch(offline=True)

Choose your downloaded model. Offline mode loads model files from the cache and reports missing files. Chat generation runs on your CPU or available CUDA GPU. Prompts and attachments are processed on your computer. The browser connects to a loopback server. The first package installation and model download require internet unless their files have already been supplied locally.

Skip the picker

from uniquechat import launch
launch("HuggingFaceTB/SmolVLM-256M-Instruct")

From a terminal, use uniquechat or uniquechat --offline HuggingFaceTB/SmolLM2-135M-Instruct. You can enter other Transformers causal chat model IDs with built-in chat templates and safetensors weights. Image chat support targets Idefics3 and SmolVLM. Custom model code, GGUF files and image generation models are outside this version's scope.

Maintainer release

Register a pending PyPI Trusted Publisher for project uniquechat, owner Unique50101, repository uniquechat, workflow release.yml, environment pypi. Push a version tag matching the package metadata, such as v0.1.0. The workflow builds the wheel and source archive, installs the wheel, generates a reply with both starter models using cached weights, uploads to PyPI, and attaches the distributions to a GitHub Release. Manual workflow runs verify the package without publishing.

Run the GitHub Packages container

Run this command and open http://127.0.0.1:7860 in Chrome. The named volume keeps downloaded models between runs.

docker run --rm -p 127.0.0.1:7860:7860 -v uniquechat-models:/cache ghcr.io/unique50101/uniquechat:0.1.0

Metadata

Release files for uniquechat 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uniquechat 0.1.1
File Size Uploaded Provenance Actions
uniquechat-0.1.1.tar.gz 213.1 kB With provenance Details for uniquechat-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uniquechat 0.1.1
File Interpreter ABI Platform Actions
uniquechat-0.1.1-py3-none-any.whl Python 3 none any Details for uniquechat-0.1.1-py3-none-any.whl

Total release size: 228.4 kB

Release files / uniquechat-0.1.1.tar.gz

Download URL uniquechat-0.1.1.tar.gz
Size 213.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8e1cdf55e3c2a5386799b6ab064c4c562fd2132cd70c4034273f6fcf3307cd20
BLAKE2b-256 checksum
How to use checksums
2e88177fed42a813a350ca0a1f37fa856f28c8de883c620e2aec12f3ec83c245
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / uniquechat-0.1.1-py3-none-any.whl

Download URL uniquechat-0.1.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2212dd067c2dff2e64c0cfa7c345d382535a5e1a7eb55568aa165f6c82041b9
BLAKE2b-256 checksum
How to use checksums
7b30aa385ed81b4c21953a1726d3d691c5a2388178fa5a119f75fa975a725636
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for uniquechat 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for uniquechat-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page