Text Generation
Transformers
Safetensors
English
mistral
text-generation-inference
unsloth
trl
4-bit precision
bitsandbytes
Instructions to use codesagar/WatchTowerReasoning_4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codesagar/WatchTowerReasoning_4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="codesagar/WatchTowerReasoning_4bit")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("codesagar/WatchTowerReasoning_4bit") model = AutoModelForCausalLM.from_pretrained("codesagar/WatchTowerReasoning_4bit") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use codesagar/WatchTowerReasoning_4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "codesagar/WatchTowerReasoning_4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "codesagar/WatchTowerReasoning_4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/codesagar/WatchTowerReasoning_4bit
- SGLang
How to use codesagar/WatchTowerReasoning_4bit 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 "codesagar/WatchTowerReasoning_4bit" \ --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": "codesagar/WatchTowerReasoning_4bit", "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 "codesagar/WatchTowerReasoning_4bit" \ --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": "codesagar/WatchTowerReasoning_4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Studio
How to use codesagar/WatchTowerReasoning_4bit with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for codesagar/WatchTowerReasoning_4bit to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for codesagar/WatchTowerReasoning_4bit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for codesagar/WatchTowerReasoning_4bit to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="codesagar/WatchTowerReasoning_4bit", max_seq_length=2048, ) - Docker Model Runner
How to use codesagar/WatchTowerReasoning_4bit with Docker Model Runner:
docker model run hf.co/codesagar/WatchTowerReasoning_4bit
Trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- tokenizer.json +7 -16
- tokenizer_config.json +2 -1
tokenizer.json
CHANGED
|
@@ -31,23 +31,13 @@
|
|
| 31 |
"special": true
|
| 32 |
}
|
| 33 |
],
|
| 34 |
-
"normalizer":
|
| 35 |
-
|
| 36 |
-
"
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
},
|
| 41 |
-
{
|
| 42 |
-
"type": "Replace",
|
| 43 |
-
"pattern": {
|
| 44 |
-
"String": " "
|
| 45 |
-
},
|
| 46 |
-
"content": "▁"
|
| 47 |
-
}
|
| 48 |
-
]
|
| 49 |
},
|
| 50 |
-
"pre_tokenizer": null,
|
| 51 |
"post_processor": {
|
| 52 |
"type": "TemplateProcessing",
|
| 53 |
"single": [
|
|
@@ -134,6 +124,7 @@
|
|
| 134 |
"end_of_word_suffix": null,
|
| 135 |
"fuse_unk": true,
|
| 136 |
"byte_fallback": true,
|
|
|
|
| 137 |
"vocab": {
|
| 138 |
"<unk>": 0,
|
| 139 |
"<s>": 1,
|
|
|
|
| 31 |
"special": true
|
| 32 |
}
|
| 33 |
],
|
| 34 |
+
"normalizer": null,
|
| 35 |
+
"pre_tokenizer": {
|
| 36 |
+
"type": "Metaspace",
|
| 37 |
+
"replacement": "▁",
|
| 38 |
+
"prepend_scheme": "first",
|
| 39 |
+
"split": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
},
|
|
|
|
| 41 |
"post_processor": {
|
| 42 |
"type": "TemplateProcessing",
|
| 43 |
"single": [
|
|
|
|
| 124 |
"end_of_word_suffix": null,
|
| 125 |
"fuse_unk": true,
|
| 126 |
"byte_fallback": true,
|
| 127 |
+
"ignore_merges": false,
|
| 128 |
"vocab": {
|
| 129 |
"<unk>": 0,
|
| 130 |
"<s>": 1,
|
tokenizer_config.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"add_bos_token": true,
|
| 3 |
"add_eos_token": false,
|
|
|
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
"0": {
|
| 6 |
"content": "<unk>",
|
|
@@ -31,7 +32,7 @@
|
|
| 31 |
"bos_token": "<s>",
|
| 32 |
"clean_up_tokenization_spaces": false,
|
| 33 |
"eos_token": "</s>",
|
| 34 |
-
"legacy":
|
| 35 |
"model_max_length": 32768,
|
| 36 |
"pad_token": "<unk>",
|
| 37 |
"padding_side": "left",
|
|
|
|
| 1 |
{
|
| 2 |
"add_bos_token": true,
|
| 3 |
"add_eos_token": false,
|
| 4 |
+
"add_prefix_space": null,
|
| 5 |
"added_tokens_decoder": {
|
| 6 |
"0": {
|
| 7 |
"content": "<unk>",
|
|
|
|
| 32 |
"bos_token": "<s>",
|
| 33 |
"clean_up_tokenization_spaces": false,
|
| 34 |
"eos_token": "</s>",
|
| 35 |
+
"legacy": false,
|
| 36 |
"model_max_length": 32768,
|
| 37 |
"pad_token": "<unk>",
|
| 38 |
"padding_side": "left",
|