Instructions to use Kowsher/TokenTrails with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kowsher/TokenTrails with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kowsher/TokenTrails", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Kowsher/TokenTrails", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Kowsher/TokenTrails", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kowsher/TokenTrails with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kowsher/TokenTrails" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kowsher/TokenTrails", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Kowsher/TokenTrails
- SGLang
How to use Kowsher/TokenTrails 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 "Kowsher/TokenTrails" \ --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": "Kowsher/TokenTrails", "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 "Kowsher/TokenTrails" \ --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": "Kowsher/TokenTrails", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Kowsher/TokenTrails with Docker Model Runner:
docker model run hf.co/Kowsher/TokenTrails
Commit History
-
Rename tokenizer.jsonf to tokenizer.json
Verified signature0f8d036 -
Rename tokenizer.json to tokenizer.jsonf
Verified signatureed37ece -
Update pytorch_model.bin.index.json
Verified signaturec059796 -
Rename apytorch_model-00002-of-00002.bin to pytorch_model-00002-of-00002.bin
Verified signaturea675f8d -
Rename pytorch_model-00002-of-00002.bin to apytorch_model-00002-of-00002.bin
Verified signature1dc2f31 -
Rename apytorch_model-00001-of-00002.bin to pytorch_model-00001-of-00002.bin
Verified signature293974f -
Rename pytorch_model-00001-of-00002.bin to apytorch_model-00001-of-00002.bin
Verified signature2e0d637 -
Update special_tokens_map.json
Verified signature0ec72d7 -
Update handler.py
Verified signatureaad3543 -
Update generation_config.json
Verified signature3e6bdf8 -
Update configuration_falcon.py
Verified signature56b2d95 -
Update .gitattributes
Verified signaturea3664a5 -
Update config.json
Verified signaturef6ee63f -
Update ChatFalcon.py
Verified signature6392e4a -
Update README.md
Verified signaturec7cbcaf -
Update tokenizer_config.json
Verified signatureffe26aa
-
Update ChatFalcon.py
b042987
-
Update handler.py
cd690fb -
Update ChatFalcon.py
231705d -
Update handler.py
9fec138 -
Update configuration_falcon.py
8a94878 -
Update config.json
b9f39a3 -
Update ChatFalcon.py
f212723 -
Update ChatFalcon.py
3dc3074 -
Update ChatFalcon.py
97c8b2e -
Update ChatFalcon.py
e755826 -
Update ChatFalcon.py
c0158fa -
Update configuration_falcon.py
dadc7b9 -
Update ChatFalcon.py
e282f5d -
Update configuration_falcon.py
856e146 -
Update config.json
71e8e1a -
Update configuration_falcon.py
3950a77 -
Update config.json
015ea4e -
Update handler.py
13ad266 -
Update configuration_falcon.py
1db61ef -
Update ChatFalcon.py
4fed768 -
Update config.json
ed29387 -
Update config.json
5f7ceb0 -
Update config.json
f364932 -
Update config.json
b40ada8 -
Update handler.py
8e4e321 -
Create README.md
cca9ba8 -
Create handler.py
6ebccb5 -
Create generation_config.json
2972eba -
Update ChatFalcon.py
f14f38b -
Update config.json
092918d -
Upload 2 files
47f4058 -
Upload FalconForCausalLM
67d017e -
Upload tokenizer
c250dca
-
initial commit
ba18906