Instructions to use alexcg1/trekbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alexcg1/trekbot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alexcg1/trekbot")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("alexcg1/trekbot") model = AutoModelForCausalLM.from_pretrained("alexcg1/trekbot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use alexcg1/trekbot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alexcg1/trekbot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexcg1/trekbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/alexcg1/trekbot
- SGLang
How to use alexcg1/trekbot 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 "alexcg1/trekbot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexcg1/trekbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "alexcg1/trekbot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexcg1/trekbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use alexcg1/trekbot with Docker Model Runner:
docker model run hf.co/alexcg1/trekbot
Commit History
-
upload flax model
74c658a -
allow flax
2f3eefe
-
Update config.json
37babd5 -
Update vocab.json
7321f6b -
Update pytorch_model.bin
d5e7556 -
Update merges.txt
46e0535 -
Update config.json
d4303a1 -
Update vocab.json
b847872 -
Update merges.txt
24f7adb -
Update config.json
90cbee8 -
Update vocab.json
8f9dffd -
Update merges.txt
b5ed5fc
-
Update config.json
8934069 -
Update vocab.json
e6a0b6f -
Update merges.txt
b0812c3 -
Update merges.txt
c58b659 -
Update config.json
e4e9b91 -
Update vocab.json
52d9242 -
Update merges.txt
e814774
-
Update merges.txt
d426c76 -
Update config.json
bb227fd -
Update vocab.json
2e46e3a -
initial commit
1db79b3