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
File size: 9,801 Bytes
ed79a7f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | {
"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"
}
}
]
}
}
|