Text Generation
Transformers
Safetensors
llama
experimental
web-agent
tool-calling
lora-merged
bf16
conversational
text-generation-inference
Instructions to use webbrain-one/webbrain-compass-tiny-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use webbrain-one/webbrain-compass-tiny-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="webbrain-one/webbrain-compass-tiny-v2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("webbrain-one/webbrain-compass-tiny-v2") model = AutoModelForCausalLM.from_pretrained("webbrain-one/webbrain-compass-tiny-v2", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use webbrain-one/webbrain-compass-tiny-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "webbrain-one/webbrain-compass-tiny-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "webbrain-one/webbrain-compass-tiny-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/webbrain-one/webbrain-compass-tiny-v2
- SGLang
How to use webbrain-one/webbrain-compass-tiny-v2 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 "webbrain-one/webbrain-compass-tiny-v2" \ --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": "webbrain-one/webbrain-compass-tiny-v2", "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 "webbrain-one/webbrain-compass-tiny-v2" \ --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": "webbrain-one/webbrain-compass-tiny-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use webbrain-one/webbrain-compass-tiny-v2 with Docker Model Runner:
docker model run hf.co/webbrain-one/webbrain-compass-tiny-v2
Download provenance/experimental-release.json from webbrain-one/webbrain-compass-tiny-v2: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/webbrain-one/webbrain-compass-tiny-v2/resolve/main/provenance/experimental-release.json
- Command line
-
hf download hf://webbrain-one/webbrain-compass-tiny-v2/provenance/experimental-release.json
-
curl -L -o experimental-release.json https://huggingface.co/webbrain-one/webbrain-compass-tiny-v2/resolve/main/provenance/experimental-release.json
1.06 kB
| {"benchmarkAuditSha256": "7231b69d180c74bc3f48875c9beb2fc5707628c322d8a79061f8369c0f59de96", "candidateVerificationSha256": "a797ba7921c263142d3c0a43204f188e1424b9c51a95639e2682809415564fce", "cardSourceSha256": "5950622d41c20077316b567dfa9cd733c20649e0c349fc45233b3897a5d42ba8", "createdAt": 1789044702.0034761, "experimental": true, "implementationSha256": "d1e0f51c2cb5a6726c5d6a655939422f108e44e22b41bde6a20304a6fb380c89", "licenseSource": {"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30", "url": "https://www.apache.org/licenses/LICENSE-2.0.txt"}, "numericalReloadVerified": true, "onnxVerified": false, "originalGateStatus": {"antiAtMost1": true, "looseAtLeast43of89": false, "scenarioErrorsAtMost1": true, "strictAtLeast15of89": true, "structuredAtLeast93of100": true, "zeroFirstTurnErrors": true}, "privateOnly": true, "status": "experimental-private-bf16-authorized-with-disclosed-failed-quality-gate", "userAuthorizationSha256": "fbd937cb8a435c682417809f823d96623ab2f7f518bdb5603cfe95c71bb803b2", "v4QualityPassed": false} | |