Text Generation
Transformers
Safetensors
English
qwen2
business-intelligence
market-analysis
web-research
agent
tool-calling
business-consultancy
autonomous-agent
competitive-intelligence
trend-forecasting
chatpbc
luwa
conversational
text-generation-inference
Instructions to use chatpbclabs/luwa-01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chatpbclabs/luwa-01 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chatpbclabs/luwa-01") 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("chatpbclabs/luwa-01") model = AutoModelForCausalLM.from_pretrained("chatpbclabs/luwa-01", 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 chatpbclabs/luwa-01 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chatpbclabs/luwa-01" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chatpbclabs/luwa-01", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/chatpbclabs/luwa-01
- SGLang
How to use chatpbclabs/luwa-01 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 "chatpbclabs/luwa-01" \ --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": "chatpbclabs/luwa-01", "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 "chatpbclabs/luwa-01" \ --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": "chatpbclabs/luwa-01", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use chatpbclabs/luwa-01 with Docker Model Runner:
docker model run hf.co/chatpbclabs/luwa-01
Commit History
-
Update README.md
Verified signature96c57f7 -
Update README.md
Verified signatured10e663 -
Update README.md
Verified signature6d77734
-
Update README.md
Verified signature446a478 -
Update README.md
Verified signature04d705d -
Update README.md
Verified signatureb1febfc
-
Upload README.md with huggingface_hub
Verified signature0e4d33e -
Upload tokenizer_config.json with huggingface_hub
Verified signaturedf23740 -
Upload model.safetensors with huggingface_hub
Verified signature4bb6116 -
luwa-01 v2 — Improved identity lock, English fluency, and agent capabilities
Verified signature2ed3c16 -
Add installation and deployment guide
Verified signaturec0a42ed -
Add user-friendly agent guide
Verified signature8b8a90f -
Remove technical agent code from main model repo
Verified signatureab765ba -
Upgrade agent config with tools and agent loop
Verified signature8445b72 -
Upgrade to powerful agent system prompt
Verified signature7356ce1 -
Update system prompt in chat template
Verified signature4e776f5 -
Sync MODEL_CARD with README
Verified signature19ff350 -
Update README: remove qwen tags, add strengths comparison, production checklist
Verified signaturee66cf21 -
Update MODEL_CARD.md to match README
Verified signature69b3a3e -
Update README with strengths vs general-purpose models and production readiness
Verified signature7cca7bb -
Upload MODEL_CARD.md with huggingface_hub
Verified signaturebef57df -
Upload luwa_agent.py with huggingface_hub
Verified signaturefe7ddc8 -
Upload agent_config.json with huggingface_hub
Verified signature5ab1c03 -
Upload system_prompt.txt with huggingface_hub
Verified signature58daf03 -
Upload tokenizer.json with huggingface_hub
Verified signature68d0a6c -
Upload tokenizer_config.json with huggingface_hub
Verified signature1890c96 -
Upload chat_template.jinja with huggingface_hub
Verified signaturec4e61a9 -
Upload model.safetensors with huggingface_hub
Verified signaturec9c2085 -
Upload README.md with huggingface_hub
Verified signaturebc23709 -
Upload generation_config.json with huggingface_hub
Verified signature060aa40 -
Upload config.json with huggingface_hub
Verified signature3b13416 -
initial commit
Verified signature204fee3