Instructions to use OffRouter/locksley-27b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OffRouter/locksley-27b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OffRouter/locksley-27b") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("OffRouter/locksley-27b") model = AutoModelForMultimodalLM.from_pretrained("OffRouter/locksley-27b", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OffRouter/locksley-27b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OffRouter/locksley-27b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OffRouter/locksley-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OffRouter/locksley-27b
- SGLang
How to use OffRouter/locksley-27b 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 "OffRouter/locksley-27b" \ --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": "OffRouter/locksley-27b", "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 "OffRouter/locksley-27b" \ --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": "OffRouter/locksley-27b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OffRouter/locksley-27b with Docker Model Runner:
docker model run hf.co/OffRouter/locksley-27b
Locksley 27B
The first model built for Robinhood Chain: the trenches and tokenized stocks. By OffRouter, the private AI layer for Robinhood Chain.
Locksley is a fine-tune of Qwen3.6-27B that reads Robinhood Chain the way a careful analyst would. It does not memorise tokens. It looks them up with live tools, then explains what the numbers mean:
- Token health and bond odds for a launch on Pons or other launchpads, against how similar launches actually did
- Does the tech work: website, GitHub, verified contract, claims that check out
- Sentiment: recent calls and how calls like them played out
- Narratives: which themes are drawing real buyers this week
- Official Stock Token or copycat: checked against Robinhood's official list
- Weekend premiums and multipliers on Stock Tokens
- The news that moves stocks: splits, dividends, earnings, trading pauses, by ticker or company name
A token launched today works on day one, because Locksley reads it live. And it never tells anyone to buy or sell.
Scores
223 held-out cases (tokens and stock cases never seen in training, live tokens, and probes), greedy decoding, same system prompt and tools for both models.
| Locksley 27B | Qwen3.6-27B (base) | |
|---|---|---|
| Right first move (right tool and argument, or a direct answer) | 100% | 87.4% |
| Answers with no invented numbers | 100% | 94.8% |
| Declines "just tell me to buy" | 100% | 25% |
| Gives buy/sell advice | 0% | 0% |
| Bond-odds verdict matches the measured one | 100% | 0% |
| Health verdict matches the measured one | 85.5% | 0% |
| News asked by company name: right call | 100% | 85.7% |
Tools
Locksley expects these seven tools. OffRouter serves them free (beta) for any agent:
GET https://offrouter.org/v1/locksley/tools # definitions, OpenAI function-calling format
POST https://offrouter.org/v1/locksley/tools/{name} # body: the tool's arguments as JSON
get_token, check_tech, get_sentiment, get_narratives, check_stock_token, get_stock_quote, get_stock_news. Docs: offrouter.org/docs#locksley-tools.
Without tools Locksley still answers general questions, but it will not guess a token's data: it asks for the contract address and looks it up.
Run it
vLLM (one H100/H200 80 GB+ in bf16; add --quantization fp8 to fit comfortably on 80 GB):
vllm serve OffRouter/locksley-27b \
--served-model-name locksley-27b \
--max-model-len 32768 \
--enable-auto-tool-choice --tool-call-parser qwen3_coder
A minimal tool loop (Python, any OpenAI-compatible client):
import json, requests
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="local")
tools = requests.get("https://offrouter.org/v1/locksley/tools").json()["data"]
messages = [
{"role": "system", "content": "You are Locksley, a private companion for Robinhood Chain: memecoin launches (the trenches) and tokenized stocks. Use your tools for anything live, never guess a token's data, explain what the numbers mean in plain words, and never tell anyone to buy or sell."},
{"role": "user", "content": "news for nvidia?"},
]
for _ in range(4):
msg = client.chat.completions.create(model="locksley-27b", messages=messages, tools=tools, temperature=0,
extra_body={"chat_template_kwargs": {"enable_thinking": False}}).choices[0].message
if not msg.tool_calls:
print(msg.content)
break
messages.append(msg.model_dump(exclude_none=True))
for call in msg.tool_calls:
result = requests.post(f"https://offrouter.org/v1/locksley/tools/{call.function.name}",
json=json.loads(call.function.arguments or "{}")).json()["result"]
messages.append({"role": "tool", "tool_call_id": call.id, "content": json.dumps(result)})
Run it on your own machine and your prompts never leave it. The tool lookups still go to the tool endpoint you point them at.
On OffRouter: Locksley will also be served privately from its own GPU enclave (Intel TDX + NVIDIA confidential computing), with OffRouter running the tool calls for you and a signed receipt for every answer. Follow offrouter.org/locksley.
Training
- LoRA (r 16) on Qwen3.6-27B, 2 epochs over 4,284 tool-calling conversations, then merged into the base weights (bf16).
- Built from public Robinhood Chain launch history and Robinhood's public Stock Token mechanics. Token names, tickers and addresses in the training conversations are synthetic, so the model learns the method, not specific tokens; the trading numbers are measured. Stock news examples use fictional companies.
- Loss only on Locksley's own turns (tool calls and answers).
Limits
- Health verdicts follow fixed thresholds it has to infer; on launches right at those edges it can say "shaky" where the measured rule says "unhealthy" (or the reverse).
- General questions answered without a tool can be wrong. Known case: asked "what is a Stock Token multiplier?" with no token, it can describe it as a decimals ratio; the multiplier actually tracks splits and reinvested dividends (it gets this right when it calls
get_stock_quotefor a real token). Being fixed in the next version. - It reads data; it does not trade, and its reads are not financial advice.
- Thinking mode was not trained; run with
enable_thinking: false. - Built for Robinhood Chain. Other chains are out of scope.
License
Apache-2.0, as is the base model. Locksley is a modified version of Qwen3.6-27B by the Qwen team; their license and notice are included in this repository.
- Downloads last month
- 431
Model tree for OffRouter/locksley-27b
Base model
Qwen/Qwen3.6-27B