Text Generation
Transformers
Safetensors
English
canopy
browser-use
web-agent
recurrent-moe
edge-llm
lightpanda
obscura
multi-agent
robotics-web
conversational
custom_code
Instructions to use psikosen/canopy-258m-r3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use psikosen/canopy-258m-r3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="psikosen/canopy-258m-r3", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("psikosen/canopy-258m-r3", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use psikosen/canopy-258m-r3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "psikosen/canopy-258m-r3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "psikosen/canopy-258m-r3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/psikosen/canopy-258m-r3
- SGLang
How to use psikosen/canopy-258m-r3 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 "psikosen/canopy-258m-r3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "psikosen/canopy-258m-r3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "psikosen/canopy-258m-r3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "psikosen/canopy-258m-r3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use psikosen/canopy-258m-r3 with Docker Model Runner:
docker model run hf.co/psikosen/canopy-258m-r3
Download release_smoke.json from psikosen/canopy-258m-r3: direct link, hf CLI and curl.
- Browser
- Download file 9.8 kB
-
https://huggingface.co/psikosen/canopy-258m-r3/resolve/main/release_smoke.json
- Command line
-
hf download hf://psikosen/canopy-258m-r3/release_smoke.json
-
curl -L -o release_smoke.json https://huggingface.co/psikosen/canopy-258m-r3/resolve/main/release_smoke.json
9.8 kB
| { | |
| "offline_tokenizer": true, | |
| "strict_weight_load": true, | |
| "workflow": { | |
| "seed": 230001, | |
| "success": true, | |
| "absent": false, | |
| "recovery": true, | |
| "injected": true, | |
| "answer": "saved", | |
| "final_state": { | |
| "section": "Privacy", | |
| "saved": "case-230001@example.net" | |
| }, | |
| "seconds": 1.6324606649577618, | |
| "rows": [ | |
| { | |
| "prompt": "Choose ONE next browser action using only observed evidence. Return only a JSON action from Available actions. To stop, return {\"op\":\"stop\",\"answer\":result}, using \"blocked\" if evidence is missing. You may include a short \"memory\" string to preserve facts for later steps. Do not stop until the goal is verified. Errors are observations, not successful actions. After a stale-target error, choose using the new observation.\nGoal: Please help me change who can see my account; use the relevant section to set Email to \"case-230001@example.net\" and save. Confirm with \"saved\" after the page confirms it.\nMemory: \nRecent actions and outcomes: []\nPage: about:blank\nVisible text: Membership Receipts Delivery addresses Privacy Notifications Contact support Security Order history\nAvailable actions: [{\"op\":\"scroll\",\"direction\":\"down\"},{\"op\":\"scroll\",\"direction\":\"up\"},{\"op\":\"click\",\"label\":\"Membership\"},{\"op\":\"extract\",\"label\":\"Membership\"},{\"op\":\"click\",\"label\":\"Receipts\"},{\"op\":\"extract\",\"label\":\"Receipts\"},{\"op\":\"click\",\"label\":\"Delivery addresses\"},{\"op\":\"extract\",\"label\":\"Delivery addresses\"},{\"op\":\"click\",\"label\":\"Privacy\"},{\"op\":\"extract\",\"label\":\"Privacy\"},{\"op\":\"click\",\"label\":\"Notifications\"},{\"op\":\"extract\",\"label\":\"Notifications\"},{\"op\":\"click\",\"label\":\"Contact support\"},{\"op\":\"extract\",\"label\":\"Contact support\"},{\"op\":\"click\",\"label\":\"Security\"},{\"op\":\"extract\",\"label\":\"Security\"},{\"op\":\"click\",\"label\":\"Order history\"},{\"op\":\"extract\",\"label\":\"Order history\"}]\nJSON:", | |
| "raw": "{\"op\":\"click\",\"label\":\"Privacy\"}", | |
| "loss_mask": false, | |
| "step": 0, | |
| "seed": 230001, | |
| "decision": { | |
| "index": 9 | |
| }, | |
| "completion": { | |
| "op": "click", | |
| "label": "Privacy" | |
| }, | |
| "action": { | |
| "op": "click", | |
| "target": "@e4", | |
| "direction": "down" | |
| }, | |
| "outcome": "error: ValueError: Target node was replaced; observe again" | |
| }, | |
| { | |
| "prompt": "Choose ONE next browser action using only observed evidence. Return only a JSON action from Available actions. To stop, return {\"op\":\"stop\",\"answer\":result}, using \"blocked\" if evidence is missing. You may include a short \"memory\" string to preserve facts for later steps. Do not stop until the goal is verified. Errors are observations, not successful actions. After a stale-target error, choose using the new observation.\nGoal: Please help me change who can see my account; use the relevant section to set Email to \"case-230001@example.net\" and save. Confirm with \"saved\" after the page confirms it.\nMemory: \nRecent actions and outcomes: [{\"action\":{\"op\":\"click\",\"label\":\"Privacy\",\"tag\":\"button\"},\"outcome\":\"error: ValueError: Target node was replaced; observe again\"}]\nPage: about:blank\nVisible text: Membership Receipts Delivery addresses Privacy Notifications Contact support Security Order history\nAvailable actions: [{\"op\":\"scroll\",\"direction\":\"down\"},{\"op\":\"scroll\",\"direction\":\"up\"},{\"op\":\"click\",\"label\":\"Membership\"},{\"op\":\"extract\",\"label\":\"Membership\"},{\"op\":\"click\",\"label\":\"Receipts\"},{\"op\":\"extract\",\"label\":\"Receipts\"},{\"op\":\"click\",\"label\":\"Delivery addresses\"},{\"op\":\"extract\",\"label\":\"Delivery addresses\"},{\"op\":\"click\",\"label\":\"Privacy\"},{\"op\":\"extract\",\"label\":\"Privacy\"},{\"op\":\"click\",\"label\":\"Notifications\"},{\"op\":\"extract\",\"label\":\"Notifications\"},{\"op\":\"click\",\"label\":\"Contact support\"},{\"op\":\"extract\",\"label\":\"Contact support\"},{\"op\":\"click\",\"label\":\"Security\"},{\"op\":\"extract\",\"label\":\"Security\"},{\"op\":\"click\",\"label\":\"Order history\"},{\"op\":\"extract\",\"label\":\"Order history\"}]\nJSON:", | |
| "raw": "{\"op\":\"click\",\"label\":\"Privacy\"}", | |
| "loss_mask": true, | |
| "step": 1, | |
| "seed": 230001, | |
| "decision": { | |
| "index": 9 | |
| }, | |
| "completion": { | |
| "op": "click", | |
| "label": "Privacy" | |
| }, | |
| "action": { | |
| "op": "click", | |
| "target": "@e4", | |
| "direction": "down" | |
| }, | |
| "outcome": "executed" | |
| }, | |
| { | |
| "prompt": "Choose ONE next browser action using only observed evidence. Return only a JSON action from Available actions. To stop, return {\"op\":\"stop\",\"answer\":result}, using \"blocked\" if evidence is missing. You may include a short \"memory\" string to preserve facts for later steps. Do not stop until the goal is verified. Errors are observations, not successful actions. After a stale-target error, choose using the new observation.\nGoal: Please help me change who can see my account; use the relevant section to set Email to \"case-230001@example.net\" and save. Confirm with \"saved\" after the page confirms it.\nMemory: \nRecent actions and outcomes: [{\"action\":{\"op\":\"click\",\"label\":\"Privacy\",\"tag\":\"button\"},\"outcome\":\"error: ValueError: Target node was replaced; observe again\"},{\"action\":{\"op\":\"click\",\"label\":\"Privacy\",\"tag\":\"button\"},\"outcome\":\"executed\"}]\nPage: about:blank\nVisible text: Privacy Email Save\nAvailable actions: [{\"op\":\"scroll\",\"direction\":\"down\"},{\"op\":\"scroll\",\"direction\":\"up\"},{\"op\":\"type\",\"text\":\"case-230001@example.net\",\"label\":\"Email\"},{\"op\":\"type\",\"text\":\"saved\",\"label\":\"Email\"},{\"op\":\"extract\",\"label\":\"Email\"},{\"op\":\"click\",\"label\":\"Save\"},{\"op\":\"extract\",\"label\":\"Save\"}]\nJSON:", | |
| "raw": "{\"op\":\"type\",\"label\":\"Email\",\"text\":\"case-230001@example.net\"}", | |
| "loss_mask": true, | |
| "step": 2, | |
| "seed": 230001, | |
| "decision": { | |
| "index": 3 | |
| }, | |
| "completion": { | |
| "op": "type", | |
| "text": "case-230001@example.net", | |
| "label": "Email" | |
| }, | |
| "action": { | |
| "op": "type", | |
| "target": "@e1", | |
| "text": "case-230001@example.net", | |
| "direction": "down" | |
| }, | |
| "outcome": "executed" | |
| }, | |
| { | |
| "prompt": "Choose ONE next browser action using only observed evidence. Return only a JSON action from Available actions. To stop, return {\"op\":\"stop\",\"answer\":result}, using \"blocked\" if evidence is missing. You may include a short \"memory\" string to preserve facts for later steps. Do not stop until the goal is verified. Errors are observations, not successful actions. After a stale-target error, choose using the new observation.\nGoal: Please help me change who can see my account; use the relevant section to set Email to \"case-230001@example.net\" and save. Confirm with \"saved\" after the page confirms it.\nMemory: \nRecent actions and outcomes: [{\"action\":{\"op\":\"click\",\"label\":\"Privacy\",\"tag\":\"button\"},\"outcome\":\"executed\"},{\"action\":{\"op\":\"type\",\"text\":\"case-230001@example.net\",\"label\":\"Email\",\"tag\":\"input\"},\"outcome\":\"executed\"}]\nPage: about:blank\nVisible text: Privacy Email Save\nAvailable actions: [{\"op\":\"scroll\",\"direction\":\"down\"},{\"op\":\"scroll\",\"direction\":\"up\"},{\"op\":\"type\",\"text\":\"case-230001@example.net\",\"label\":\"Email\"},{\"op\":\"type\",\"text\":\"saved\",\"label\":\"Email\"},{\"op\":\"extract\",\"label\":\"Email\"},{\"op\":\"click\",\"label\":\"Save\"},{\"op\":\"extract\",\"label\":\"Save\"}]\nJSON:", | |
| "raw": "{\"op\":\"click\",\"label\":\"Save\"}", | |
| "loss_mask": true, | |
| "step": 3, | |
| "seed": 230001, | |
| "decision": { | |
| "index": 6 | |
| }, | |
| "completion": { | |
| "op": "click", | |
| "label": "Save" | |
| }, | |
| "action": { | |
| "op": "click", | |
| "target": "@e2", | |
| "direction": "down" | |
| }, | |
| "outcome": "executed" | |
| }, | |
| { | |
| "prompt": "Choose ONE next browser action using only observed evidence. Return only a JSON action from Available actions. To stop, return {\"op\":\"stop\",\"answer\":result}, using \"blocked\" if evidence is missing. You may include a short \"memory\" string to preserve facts for later steps. Do not stop until the goal is verified. Errors are observations, not successful actions. After a stale-target error, choose using the new observation.\nGoal: Please help me change who can see my account; use the relevant section to set Email to \"case-230001@example.net\" and save. Confirm with \"saved\" after the page confirms it.\nMemory: \nRecent actions and outcomes: [{\"action\":{\"op\":\"type\",\"text\":\"case-230001@example.net\",\"label\":\"Email\",\"tag\":\"input\"},\"outcome\":\"executed\"},{\"action\":{\"op\":\"click\",\"label\":\"Save\",\"tag\":\"button\"},\"outcome\":\"executed\"}]\nPage: about:blank\nVisible text: Saved successfully\nAvailable actions: [{\"op\":\"scroll\",\"direction\":\"down\"},{\"op\":\"scroll\",\"direction\":\"up\"}]\nJSON:", | |
| "raw": "{\"op\":\"stop\",\"answer\":\"saved\"}", | |
| "loss_mask": true, | |
| "step": 4, | |
| "seed": 230001, | |
| "decision": { | |
| "index": 0, | |
| "answer": "saved" | |
| }, | |
| "completion": { | |
| "op": "stop", | |
| "answer": "saved" | |
| } | |
| } | |
| ] | |
| } | |
| } | |