Instructions to use Tribewarez/psy-q-finder-369M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tribewarez/psy-q-finder-369M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Tribewarez/psy-q-finder-369M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Tribewarez/psy-q-finder-369M") model = AutoModelForCausalLM.from_pretrained("Tribewarez/psy-q-finder-369M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Tribewarez/psy-q-finder-369M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tribewarez/psy-q-finder-369M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tribewarez/psy-q-finder-369M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Tribewarez/psy-q-finder-369M
- SGLang
How to use Tribewarez/psy-q-finder-369M 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 "Tribewarez/psy-q-finder-369M" \ --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": "Tribewarez/psy-q-finder-369M", "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 "Tribewarez/psy-q-finder-369M" \ --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": "Tribewarez/psy-q-finder-369M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Tribewarez/psy-q-finder-369M with Docker Model Runner:
docker model run hf.co/Tribewarez/psy-q-finder-369M
Psy-Q-Finder 369M (psy-q-finder-369M)
GPT-2-style causal language model scaffold sized for the 369.666.444 parameter lineage (symbolic design target 369,666,444). The enumerated trainable parameter count under Hugging Face GPT2LMHeadModel with the tabled hyperparameters is 369,666,384 (β60 vs the lineage integer β discrete position-embedding sizing prevents an exact match without non-standard hacks).
Purpose (research framing): exploratory computational work on hypothetical reaction graphs and in silico pathways discussed in the licensed psychedelic-science literature β not verified syntheses, not instructions for real-world preparation, and not encouragement of illegal activity. Outputs are uncorroborated; wet-lab validation, regulatory compliance, and safety review are out of scope for this repository.
Weights in releases are typically random initialization unless a fine-tune is explicitly documented on the Hub revision.
Milestone: 4,435 downloads/month β thank you
This scaffold is currently receiving 4,435 downloads per month. That is a strong signal that the lineage concept and architecture are resonating with the community. This release bumps the model card to fix the fine-tuning quickstart, surface companion datasets, add bfloat16 guidance, and formally mark the v2 iteration cycle.
If you have fine-tuned or used this scaffold β even for exploration β please drop a note in the Community Discussion. We want to hear what you built.
Companion datasets (369M lineage)
This scaffold is designed to be fine-tuned on the Psy-Q 369.666.444 lineage datasets:
| Dataset | Records | Description |
|---|---|---|
| Tribewarez/psy-q-graph-369666 | 369,666 | Synthetic abstract pathway-graph challenges (BFS pathfinding: meta, route, guard, probe node types). Pre-split 90/10 train/test. |
| Tribewarez/psy-q-scene-369666 | 369,666 | Synthetic scene-register prose fiction (Goa/psytrance-adjacent: imaginary flyers, DJ bios, travelogue snippets, PSAs). Pre-split 90/10. |
Both datasets were generated with seed 369_666_444 / 369_666_445 to align with the model lineage.
Specs
| Architecture | GPT2LMHeadModel |
| Lineage target | 369,666,444 (symbolic) |
| Enumerated parameters | 369,666,384 |
vocab_size |
50257 (GPT-2 BPE; tokenizer from gpt2) |
n_positions |
965 |
n_embd |
1047 |
n_layer |
24 |
n_head |
3 |
n_inner |
4188 (4 Γ n_embd) |
tie_word_embeddings |
true |
Hub weight dtype |
float16 (~739 MiB model.safetensors) |
| Precision support | float16 (Hub default), float32, bfloat16 (recommended on Ampere+ GPUs) |
bfloat16 note: on modern GPUs (A100, RTX 30/40 series) use
torch_dtype=torch.bfloat16for better numerical stability than float16 at the same memory cost. Pass--dtype bfloat16tocreate_model.pywhen materializing locally.
Fine-tuning quickstart
import torch
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
DataCollatorForLanguageModeling,
Trainer,
TrainingArguments,
)
from datasets import load_dataset
model_id = "Tribewarez/psy-q-finder-369M"
tok = AutoTokenizer.from_pretrained(model_id)
tok.pad_token = tok.eos_token
# Load on GPU in bfloat16 (or float16 if bf16 unavailable)
dtype = torch.bfloat16 if torch.cuda.is_bf16_supported() else torch.float16
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=dtype)
# Graph-path challenge dataset (primary lineage companion)
ds = load_dataset("Tribewarez/psy-q-graph-369666")
def tokenize(batch):
return tok(
batch["challenge"],
truncation=True,
max_length=512,
padding=False,
)
ds = ds.map(tokenize, batched=True, remove_columns=ds["train"].column_names)
# Causal LM collator β shifts labels internally, no masking
collator = DataCollatorForLanguageModeling(tokenizer=tok, mlm=False)
args = TrainingArguments(
output_dir="./psy-q-finder-369M-ft",
per_device_train_batch_size=2,
gradient_accumulation_steps=4,
num_train_epochs=1,
learning_rate=2e-5,
lr_scheduler_type="cosine",
warmup_ratio=0.05,
save_strategy="epoch",
bf16=torch.cuda.is_bf16_supported(),
fp16=not torch.cuda.is_bf16_supported(),
logging_steps=50,
report_to="none",
)
Trainer(
model=model,
args=args,
train_dataset=ds["train"],
eval_dataset=ds["test"],
data_collator=collator,
).train()
Treat all model outputs as untrusted scientific fiction until independently validated.
For a standalone CLI training script that supports both this model and pot-o-22-slim, see train.py in the upstream monorepo.
Recreate artifacts
cd psy-q-finder-369M
# Config + tokenizer only (no large weight files):
python create_model.py --skip-weights
# Full randomly initialized weights (~1.5 GiB float32 on disk):
python create_model.py --dtype float32
# Smaller footprint on disk (~740 MiB):
python create_model.py --dtype float16
# bfloat16 (Ampere+ GPUs recommended):
python create_model.py --dtype bfloat16
Sanity check without writing files:
python create_model.py --dry-run
Push to Hub
pip install transformers huggingface_hub torch safetensors
huggingface-cli login
python create_model.py # materialize weights first unless you only want config
python upload_model.py
To update the model card only (no re-upload of weights):
python upload_model.py --readme-only
Inference (illustrative)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Tribewarez/psy-q-finder-369M"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
)
prompt = "CHALLENGE graph_v1 nodes=12 edges=15"
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(
**inputs,
max_new_tokens=64,
do_sample=True,
temperature=0.8,
top_p=0.95,
)
print(tok.decode(out[0], skip_special_tokens=True))
# Treat all generations as untrusted scientific fiction until experimentally validated.
Limitations
- Random initialization: weights are randomly initialized unless a fine-tune is explicitly documented on the Hub revision. Without fine-tuning, outputs are effectively random tokens sampled from the GPT-2 vocabulary.
- No safety filtering: this scaffold has not been RLHF-aligned or filtered. Do not deploy in production-facing applications.
- Chemistry framing: the psychedelic-science framing is research fiction. Outputs must not be treated as synthesis instructions or medical guidance.
- Context window:
n_positions=965β prompts longer than ~900 tokens will be truncated. - Attention head ratio:
n_head=3withn_embd=1047giveshead_dim=349β an unconventional ratio optimized for lineage parameter count rather than standard performance characteristics. Attention quality may differ from canonical GPT-2 configurations.
Safety and compliance
- Research and education only. Do not use model outputs as procedural chemistry.
- Legal: follow local law; many psychoactive compounds are controlled.
- Ethics: harm reduction and peer-reviewed sources supersede model speculation.
Links
- Tribewarez: huggingface.co/Tribewarez
- Upstream monorepo: pot-o-ch7-cluster
- Companion dataset (graph): Tribewarez/psy-q-graph-369666
- Companion dataset (scene): Tribewarez/psy-q-scene-369666
- Training script: train.py
- Community discussion: huggingface.co/Tribewarez/psy-q-finder-369M/discussions
MIT licensed β’ Tribewarez guild β’ live beta β’ v2
- Downloads last month
- 26
Model tree for Tribewarez/psy-q-finder-369M
Base model
openai-community/gpt2