Text Generation
Transformers
Safetensors
PyTorch
English
swarm_agi
causal-lm
swarm-intelligence
multi-agent
convergentintel
Run this model with HF Jobs
Run reaperdoesntknow/SAGI on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/reaperdoesntknow/SAGI. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/reaperdoesntknow/SAGI on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/reaperdoesntknow/SAGI. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/reaperdoesntknow/SAGI. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use reaperdoesntknow/SAGI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reaperdoesntknow/SAGI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="reaperdoesntknow/SAGI")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("reaperdoesntknow/SAGI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use reaperdoesntknow/SAGI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "reaperdoesntknow/SAGI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "reaperdoesntknow/SAGI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/reaperdoesntknow/SAGI
- SGLang
How to use reaperdoesntknow/SAGI 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 "reaperdoesntknow/SAGI" \ --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": "reaperdoesntknow/SAGI", "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 "reaperdoesntknow/SAGI" \ --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": "reaperdoesntknow/SAGI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use reaperdoesntknow/SAGI with Docker Model Runner:
docker model run hf.co/reaperdoesntknow/SAGI
Update README.md
Browse files81 unmodified lines8283848586878889909192939495969711 unmodified lines10911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815952 unmodified lines21221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824981 unmodified lines```pythonfrom transformers import AutoTokenizerfrom modeling_swarm import SwarmForCausalLMfrom configuration_swarm import SwarmConfig# Load model and tokenizermodel = SwarmForCausalLM.from_pretrained("your-username/SAGI")tokenizer = AutoTokenizer.from_pretrained("your-username/SAGI")# Generate textmodel.eval()model.reset_swarm_state() # Reset for clean generationprompt = "Once upon a time"inputs = tokenizer(prompt, return_tensors="pt")11 unmodified linesprint(tokenizer.decode(outputs[0], skip_special_tokens=True))```### Inspecting Swarm State```python# Get current swarm statestate = model.get_swarm_state()print(f"Active agents: {sum(state['active'][0])}")print(f"Goal stack depth: {state['goal_stack_size']}")# Reset swarm state between generationsmodel.reset_swarm_state()```### Training```pythonfrom datasets import load_datasetfrom transformers import Trainer, TrainingArguments# Load datasetdataset = load_dataset("roneneldan/TinyStories", split="train[:5%]")# Tokenizedef tokenize(examples):return tokenizer(examples["text"], truncation=True, max_length=256)tokenized = dataset.map(tokenize, batched=True, remove_columns=["text"])# Traintraining_args = TrainingArguments(output_dir="./sagi-finetuned",per_device_train_batch_size=4,learning_rate=3e-4,num_train_epochs=1,save_steps=500,)trainer = Trainer(model=model,args=training_args,train_dataset=tokenized,)trainer.train()```## Model Architecture Details### Swarm Configuration52 unmodified lines## Citation```bibtex@software{sagi2024,title={SAGI: Swarm AGI Language Model},author={},year={2024},url={https://huggingface.co/your-username/SAGI}}```## LicenseApache 2.0## Files- `config.json` - Model configuration- `model.safetensors` / `pytorch_model.bin` - Model weights- `tokenizer.json` - Tokenizer configuration- `modeling_swarm.py` - Model implementation (required for loading)- `configuration_swarm.py` - Config class (required for loading)- `model.py` - Swarm-7 V2.2 core system## Custom Code NoticeThis model requires custom code to run. When loading, use `trust_remote_code=True`:```pythonfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("your-username/SAGI",trust_remote_code=True)```Or import the classes directly from the model files as shown in the Quick Start section.81 unmodified lines828384858687888990919293949511 unmodified lines10710810911011111252 unmodified lines16516616716816917017117217317481 unmodified lines```pythonfrom transformers import AutoTokenizerfrom transformers import AutoModelForCausalLM, AutoConfig# Load model and tokenizermodel = AutoModelForCausalLM.from_pretrained("reaperdoesntknow/SAGI")tokenizer = AutoTokenizer.from_pretrained("reaperdoesntknow/SAGI")# Generate textmodel.eval()prompt = "Once upon a time"inputs = tokenizer(prompt, return_tensors="pt")11 unmodified linesprint(tokenizer.decode(outputs[0], skip_special_tokens=True))```## Model Architecture Details### Swarm Configuration52 unmodified lines## Citation```bibtex@software{sagi2026,title={SAGI: Swarm AGI Language Model},author={Reaperdoesntknow},year={2026},url={https://huggingface.co/your-reaperdoesntknow/SAGI}}```
README.md+7-82