Instructions to use AdoCleanCode/llasa_ready_for_training with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdoCleanCode/llasa_ready_for_training with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdoCleanCode/llasa_ready_for_training")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AdoCleanCode/llasa_ready_for_training") model = AutoModelForCausalLM.from_pretrained("AdoCleanCode/llasa_ready_for_training", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AdoCleanCode/llasa_ready_for_training with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdoCleanCode/llasa_ready_for_training" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AdoCleanCode/llasa_ready_for_training", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AdoCleanCode/llasa_ready_for_training
- SGLang
How to use AdoCleanCode/llasa_ready_for_training 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 "AdoCleanCode/llasa_ready_for_training" \ --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": "AdoCleanCode/llasa_ready_for_training", "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 "AdoCleanCode/llasa_ready_for_training" \ --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": "AdoCleanCode/llasa_ready_for_training", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AdoCleanCode/llasa_ready_for_training with Docker Model Runner:
docker model run hf.co/AdoCleanCode/llasa_ready_for_training
Upload tokenizer
Browse files- special_tokens_map.json +14 -0
- tokenizer.json +2 -2
- tokenizer_config.json +2 -2
special_tokens_map.json
CHANGED
|
@@ -27,6 +27,20 @@
|
|
| 27 |
"normalized": false,
|
| 28 |
"rstrip": false,
|
| 29 |
"single_word": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
],
|
| 32 |
"bos_token": {
|
|
|
|
| 27 |
"normalized": false,
|
| 28 |
"rstrip": false,
|
| 29 |
"single_word": false
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"content": "<|GENERATE_PHONEMES_FROM_TEXT|>",
|
| 33 |
+
"lstrip": false,
|
| 34 |
+
"normalized": false,
|
| 35 |
+
"rstrip": false,
|
| 36 |
+
"single_word": false
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"content": "<|GENERATE_TEXT_FROM_PHONEMES|>",
|
| 40 |
+
"lstrip": false,
|
| 41 |
+
"normalized": false,
|
| 42 |
+
"rstrip": false,
|
| 43 |
+
"single_word": false
|
| 44 |
}
|
| 45 |
],
|
| 46 |
"bos_token": {
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de5b56054fb87b4170c39fac0220642388a202620eedd1b3b634bb46050cab5b
|
| 3 |
+
size 29650325
|
tokenizer_config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:059be8b6771ae4634600de03eb1914919cd6b2161959eb9b265fb436fd677e4d
|
| 3 |
+
size 11833261
|