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
Upload model
Browse files- config.json +34 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/persistentshare/storage/team_nakamura/member/yamaguchi/ext_hrk_ymgch_gmail_com/ucllm_nedo_prod/train/output/step3_upload_pretrained_model/gpt_0.084B_wiki-en-ja-2b_65k_no-shuffle_step7751/",
|
| 3 |
+
"activation_function": "gelu",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPT2LMHeadModel"
|
| 6 |
+
],
|
| 7 |
+
"attn_pdrop": 0.1,
|
| 8 |
+
"bos_token_id": 50256,
|
| 9 |
+
"embd_pdrop": 0.1,
|
| 10 |
+
"eos_token_id": 50256,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"layer_norm_epsilon": 1e-05,
|
| 14 |
+
"model_type": "gpt2",
|
| 15 |
+
"n_ctx": 1024,
|
| 16 |
+
"n_embd": 768,
|
| 17 |
+
"n_head": 12,
|
| 18 |
+
"n_inner": 3072,
|
| 19 |
+
"n_layer": 8,
|
| 20 |
+
"n_positions": 2048,
|
| 21 |
+
"reorder_and_upcast_attn": false,
|
| 22 |
+
"resid_pdrop": 0.1,
|
| 23 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 24 |
+
"scale_attn_weights": true,
|
| 25 |
+
"summary_activation": null,
|
| 26 |
+
"summary_first_dropout": 0.1,
|
| 27 |
+
"summary_proj_to_labels": true,
|
| 28 |
+
"summary_type": "cls_index",
|
| 29 |
+
"summary_use_proj": true,
|
| 30 |
+
"torch_dtype": "float32",
|
| 31 |
+
"transformers_version": "4.38.2",
|
| 32 |
+
"use_cache": true,
|
| 33 |
+
"vocab_size": 65024
|
| 34 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.38.2"
|
| 6 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df7d410c5332090048220af5e7cddd637bdc08508e2001dec0369886b37cf1fa
|
| 3 |
+
size 432873304
|