Instructions to use websystemspl/Bielik-11B-v3.0-Instruct-128k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use websystemspl/Bielik-11B-v3.0-Instruct-128k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="websystemspl/Bielik-11B-v3.0-Instruct-128k") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("websystemspl/Bielik-11B-v3.0-Instruct-128k") model = AutoModelForCausalLM.from_pretrained("websystemspl/Bielik-11B-v3.0-Instruct-128k", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use websystemspl/Bielik-11B-v3.0-Instruct-128k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "websystemspl/Bielik-11B-v3.0-Instruct-128k" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "websystemspl/Bielik-11B-v3.0-Instruct-128k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/websystemspl/Bielik-11B-v3.0-Instruct-128k
- SGLang
How to use websystemspl/Bielik-11B-v3.0-Instruct-128k 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 "websystemspl/Bielik-11B-v3.0-Instruct-128k" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "websystemspl/Bielik-11B-v3.0-Instruct-128k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "websystemspl/Bielik-11B-v3.0-Instruct-128k" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "websystemspl/Bielik-11B-v3.0-Instruct-128k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use websystemspl/Bielik-11B-v3.0-Instruct-128k with Docker Model Runner:
docker model run hf.co/websystemspl/Bielik-11B-v3.0-Instruct-128k
Copy added_tokens.json from speakleash/Bielik-11B-v3.0-Instruct
Browse files- added_tokens.json +130 -0
added_tokens.json
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<|im_start|>": 32000,
|
| 3 |
+
"<|im_end|>": 32001,
|
| 4 |
+
"<|function_list|>": 32002,
|
| 5 |
+
"<|function_output|>": 32003,
|
| 6 |
+
"<|function_call|>": 32004,
|
| 7 |
+
"<tool_call>": 32005,
|
| 8 |
+
"</tool_call>": 32006,
|
| 9 |
+
"<think>": 32007,
|
| 10 |
+
"</think>": 32008,
|
| 11 |
+
"<|control_100|>": 32099,
|
| 12 |
+
"<|control_101|>": 32100,
|
| 13 |
+
"<|control_102|>": 32101,
|
| 14 |
+
"<|control_103|>": 32102,
|
| 15 |
+
"<|control_104|>": 32103,
|
| 16 |
+
"<|control_105|>": 32104,
|
| 17 |
+
"<|control_106|>": 32105,
|
| 18 |
+
"<|control_107|>": 32106,
|
| 19 |
+
"<|control_108|>": 32107,
|
| 20 |
+
"<|control_109|>": 32108,
|
| 21 |
+
"<|control_10|>": 32009,
|
| 22 |
+
"<|control_110|>": 32109,
|
| 23 |
+
"<|control_111|>": 32110,
|
| 24 |
+
"<|control_112|>": 32111,
|
| 25 |
+
"<|control_113|>": 32112,
|
| 26 |
+
"<|control_114|>": 32113,
|
| 27 |
+
"<|control_115|>": 32114,
|
| 28 |
+
"<|control_116|>": 32115,
|
| 29 |
+
"<|control_117|>": 32116,
|
| 30 |
+
"<|control_118|>": 32117,
|
| 31 |
+
"<|control_119|>": 32118,
|
| 32 |
+
"<|control_11|>": 32010,
|
| 33 |
+
"<|control_120|>": 32119,
|
| 34 |
+
"<|control_121|>": 32120,
|
| 35 |
+
"<|control_122|>": 32121,
|
| 36 |
+
"<|control_123|>": 32122,
|
| 37 |
+
"<|control_124|>": 32123,
|
| 38 |
+
"<|control_125|>": 32124,
|
| 39 |
+
"<|control_126|>": 32125,
|
| 40 |
+
"<|control_127|>": 32126,
|
| 41 |
+
"<|control_128|>": 32127,
|
| 42 |
+
"<|control_12|>": 32011,
|
| 43 |
+
"<|control_13|>": 32012,
|
| 44 |
+
"<|control_14|>": 32013,
|
| 45 |
+
"<|control_15|>": 32014,
|
| 46 |
+
"<|control_16|>": 32015,
|
| 47 |
+
"<|control_17|>": 32016,
|
| 48 |
+
"<|control_18|>": 32017,
|
| 49 |
+
"<|control_19|>": 32018,
|
| 50 |
+
"<|control_20|>": 32019,
|
| 51 |
+
"<|control_21|>": 32020,
|
| 52 |
+
"<|control_22|>": 32021,
|
| 53 |
+
"<|control_23|>": 32022,
|
| 54 |
+
"<|control_24|>": 32023,
|
| 55 |
+
"<|control_25|>": 32024,
|
| 56 |
+
"<|control_26|>": 32025,
|
| 57 |
+
"<|control_27|>": 32026,
|
| 58 |
+
"<|control_28|>": 32027,
|
| 59 |
+
"<|control_29|>": 32028,
|
| 60 |
+
"<|control_30|>": 32029,
|
| 61 |
+
"<|control_31|>": 32030,
|
| 62 |
+
"<|control_32|>": 32031,
|
| 63 |
+
"<|control_33|>": 32032,
|
| 64 |
+
"<|control_34|>": 32033,
|
| 65 |
+
"<|control_35|>": 32034,
|
| 66 |
+
"<|control_36|>": 32035,
|
| 67 |
+
"<|control_37|>": 32036,
|
| 68 |
+
"<|control_38|>": 32037,
|
| 69 |
+
"<|control_39|>": 32038,
|
| 70 |
+
"<|control_40|>": 32039,
|
| 71 |
+
"<|control_41|>": 32040,
|
| 72 |
+
"<|control_42|>": 32041,
|
| 73 |
+
"<|control_43|>": 32042,
|
| 74 |
+
"<|control_44|>": 32043,
|
| 75 |
+
"<|control_45|>": 32044,
|
| 76 |
+
"<|control_46|>": 32045,
|
| 77 |
+
"<|control_47|>": 32046,
|
| 78 |
+
"<|control_48|>": 32047,
|
| 79 |
+
"<|control_49|>": 32048,
|
| 80 |
+
"<|control_50|>": 32049,
|
| 81 |
+
"<|control_51|>": 32050,
|
| 82 |
+
"<|control_52|>": 32051,
|
| 83 |
+
"<|control_53|>": 32052,
|
| 84 |
+
"<|control_54|>": 32053,
|
| 85 |
+
"<|control_55|>": 32054,
|
| 86 |
+
"<|control_56|>": 32055,
|
| 87 |
+
"<|control_57|>": 32056,
|
| 88 |
+
"<|control_58|>": 32057,
|
| 89 |
+
"<|control_59|>": 32058,
|
| 90 |
+
"<|control_60|>": 32059,
|
| 91 |
+
"<|control_61|>": 32060,
|
| 92 |
+
"<|control_62|>": 32061,
|
| 93 |
+
"<|control_63|>": 32062,
|
| 94 |
+
"<|control_64|>": 32063,
|
| 95 |
+
"<|control_65|>": 32064,
|
| 96 |
+
"<|control_66|>": 32065,
|
| 97 |
+
"<|control_67|>": 32066,
|
| 98 |
+
"<|control_68|>": 32067,
|
| 99 |
+
"<|control_69|>": 32068,
|
| 100 |
+
"<|control_70|>": 32069,
|
| 101 |
+
"<|control_71|>": 32070,
|
| 102 |
+
"<|control_72|>": 32071,
|
| 103 |
+
"<|control_73|>": 32072,
|
| 104 |
+
"<|control_74|>": 32073,
|
| 105 |
+
"<|control_75|>": 32074,
|
| 106 |
+
"<|control_76|>": 32075,
|
| 107 |
+
"<|control_77|>": 32076,
|
| 108 |
+
"<|control_78|>": 32077,
|
| 109 |
+
"<|control_79|>": 32078,
|
| 110 |
+
"<|control_80|>": 32079,
|
| 111 |
+
"<|control_81|>": 32080,
|
| 112 |
+
"<|control_82|>": 32081,
|
| 113 |
+
"<|control_83|>": 32082,
|
| 114 |
+
"<|control_84|>": 32083,
|
| 115 |
+
"<|control_85|>": 32084,
|
| 116 |
+
"<|control_86|>": 32085,
|
| 117 |
+
"<|control_87|>": 32086,
|
| 118 |
+
"<|control_88|>": 32087,
|
| 119 |
+
"<|control_89|>": 32088,
|
| 120 |
+
"<|control_90|>": 32089,
|
| 121 |
+
"<|control_91|>": 32090,
|
| 122 |
+
"<|control_92|>": 32091,
|
| 123 |
+
"<|control_93|>": 32092,
|
| 124 |
+
"<|control_94|>": 32093,
|
| 125 |
+
"<|control_95|>": 32094,
|
| 126 |
+
"<|control_96|>": 32095,
|
| 127 |
+
"<|control_97|>": 32096,
|
| 128 |
+
"<|control_98|>": 32097,
|
| 129 |
+
"<|control_99|>": 32098
|
| 130 |
+
}
|