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:
Both datasets were generated with seed 369_666_444 / 369_666_445 to align with the model lineage.
Specs
bfloat16 note: on modern GPUs (A100, RTX 30/40 series) usetorch_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 bfloat16Sanity check without writing files:
python create_model.py --dry-runPush 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.pyTo update the model card only (no re-upload of weights):
python upload_model.py --readme-onlyInference (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
