Instructions to use hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751") model = AutoModelForCausalLM.from_pretrained("hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751
- SGLang
How to use hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751 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 "hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751" \ --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": "hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751", "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 "hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751" \ --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": "hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751 with Docker Model Runner:
docker model run hf.co/hibikaze/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751
| { | |
| "add_prefix_space": true, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "4": { | |
| "content": "<CLS>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "5": { | |
| "content": "<SEP>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "6": { | |
| "content": "<EOD>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "7": { | |
| "content": "<MASK>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<EOD>" | |
| ], | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "<CLS>", | |
| "eos_token": "</s>", | |
| "extra_ids": 0, | |
| "legacy": true, | |
| "mask_token": "<MASK>", | |
| "model_max_length": 2048, | |
| "pad_token": "<pad>", | |
| "sep_token": "<SEP>", | |
| "sp_model_kwargs": {}, | |
| "split_special_tokens": true, | |
| "tokenizer_class": "T5Tokenizer", | |
| "unk_token": "<unk>" | |
| } | |