Instructions to use freewheelin/free-solar-instrunction-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use freewheelin/free-solar-instrunction-v0.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="freewheelin/free-solar-instrunction-v0.1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("freewheelin/free-solar-instrunction-v0.1") model = AutoModelForCausalLM.from_pretrained("freewheelin/free-solar-instrunction-v0.1") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use freewheelin/free-solar-instrunction-v0.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "freewheelin/free-solar-instrunction-v0.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "freewheelin/free-solar-instrunction-v0.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/freewheelin/free-solar-instrunction-v0.1
- SGLang
How to use freewheelin/free-solar-instrunction-v0.1 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 "freewheelin/free-solar-instrunction-v0.1" \ --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": "freewheelin/free-solar-instrunction-v0.1", "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 "freewheelin/free-solar-instrunction-v0.1" \ --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": "freewheelin/free-solar-instrunction-v0.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use freewheelin/free-solar-instrunction-v0.1 with Docker Model Runner:
docker model run hf.co/freewheelin/free-solar-instrunction-v0.1
Upload tokenizer
Browse files- tokenizer.json +1 -6
- tokenizer_config.json +1 -5
tokenizer.json
CHANGED
|
@@ -1,11 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"version": "1.0",
|
| 3 |
-
"truncation":
|
| 4 |
-
"direction": "Right",
|
| 5 |
-
"max_length": 4096,
|
| 6 |
-
"strategy": "LongestFirst",
|
| 7 |
-
"stride": 0
|
| 8 |
-
},
|
| 9 |
"padding": null,
|
| 10 |
"added_tokens": [
|
| 11 |
{
|
|
|
|
| 1 |
{
|
| 2 |
"version": "1.0",
|
| 3 |
+
"truncation": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
"padding": null,
|
| 5 |
"added_tokens": [
|
| 6 |
{
|
tokenizer_config.json
CHANGED
|
@@ -128032,17 +128032,13 @@
|
|
| 128032 |
"clean_up_tokenization_spaces": false,
|
| 128033 |
"eos_token": "<|im_end|>",
|
| 128034 |
"legacy": true,
|
| 128035 |
-
"max_length": 4096,
|
| 128036 |
"model_max_length": 4096,
|
| 128037 |
"pad_token": "</s>",
|
| 128038 |
-
"padding_side": "
|
| 128039 |
"sp_model_kwargs": {},
|
| 128040 |
"spaces_between_special_tokens": false,
|
| 128041 |
"split_special_tokens": false,
|
| 128042 |
-
"stride": 0,
|
| 128043 |
"tokenizer_class": "LlamaTokenizer",
|
| 128044 |
-
"truncation_side": "right",
|
| 128045 |
-
"truncation_strategy": "longest_first",
|
| 128046 |
"trust_remote_code": false,
|
| 128047 |
"unk_token": "<unk>",
|
| 128048 |
"use_default_system_prompt": true,
|
|
|
|
| 128032 |
"clean_up_tokenization_spaces": false,
|
| 128033 |
"eos_token": "<|im_end|>",
|
| 128034 |
"legacy": true,
|
|
|
|
| 128035 |
"model_max_length": 4096,
|
| 128036 |
"pad_token": "</s>",
|
| 128037 |
+
"padding_side": "left",
|
| 128038 |
"sp_model_kwargs": {},
|
| 128039 |
"spaces_between_special_tokens": false,
|
| 128040 |
"split_special_tokens": false,
|
|
|
|
| 128041 |
"tokenizer_class": "LlamaTokenizer",
|
|
|
|
|
|
|
| 128042 |
"trust_remote_code": false,
|
| 128043 |
"unk_token": "<unk>",
|
| 128044 |
"use_default_system_prompt": true,
|