Text Generation
Transformers
Safetensors
English
swarm_agi
swarm
ai
agent
llm
convergent
cpu
fp32
agi
convergentintel
Instructions to use reaperdoesntknow/CasualSwarms with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reaperdoesntknow/CasualSwarms with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="reaperdoesntknow/CasualSwarms")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("reaperdoesntknow/CasualSwarms", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use reaperdoesntknow/CasualSwarms with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "reaperdoesntknow/CasualSwarms" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "reaperdoesntknow/CasualSwarms", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/reaperdoesntknow/CasualSwarms
- SGLang
How to use reaperdoesntknow/CasualSwarms 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/CasualSwarms" \ --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/CasualSwarms", "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/CasualSwarms" \ --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/CasualSwarms", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use reaperdoesntknow/CasualSwarms with Docker Model Runner:
docker model run hf.co/reaperdoesntknow/CasualSwarms
Upload swarm_tokenizer.json
Browse files- swarm_tokenizer.json +32 -0
swarm_tokenizer.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_length": 2048,
|
| 3 |
+
"max_agents": 20,
|
| 4 |
+
"spec": {
|
| 5 |
+
"pad": "<|pad|>",
|
| 6 |
+
"bos": "<|bos|>",
|
| 7 |
+
"eos": "<|eos|>",
|
| 8 |
+
"unk": "<|unk|>",
|
| 9 |
+
"thought": "<|thought|>",
|
| 10 |
+
"action": "<|action|>",
|
| 11 |
+
"observe": "<|observe|>",
|
| 12 |
+
"route": "<|route|>",
|
| 13 |
+
"meta": "<|meta|>",
|
| 14 |
+
"system": "<|system|>",
|
| 15 |
+
"user": "<|user|>",
|
| 16 |
+
"assistant": "<|assistant|>",
|
| 17 |
+
"tool": "<|tool|>",
|
| 18 |
+
"agent_prefix": "<|agent:",
|
| 19 |
+
"agent_suffix": "|>",
|
| 20 |
+
"channel_id_map": {
|
| 21 |
+
"system": 0,
|
| 22 |
+
"user": 1,
|
| 23 |
+
"assistant": 2,
|
| 24 |
+
"thought": 3,
|
| 25 |
+
"action": 4,
|
| 26 |
+
"observe": 5,
|
| 27 |
+
"tool": 6,
|
| 28 |
+
"route": 7,
|
| 29 |
+
"meta": 8
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|