Text Generation
Transformers
PyTorch
TensorBoard
Japanese
gpt2
japanese
lm
nlp
text-generation-inference
Instructions to use huranokuma/es2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huranokuma/es2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huranokuma/es2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huranokuma/es2") model = AutoModelForCausalLM.from_pretrained("huranokuma/es2") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use huranokuma/es2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huranokuma/es2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huranokuma/es2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huranokuma/es2
- SGLang
How to use huranokuma/es2 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 "huranokuma/es2" \ --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": "huranokuma/es2", "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 "huranokuma/es2" \ --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": "huranokuma/es2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huranokuma/es2 with Docker Model Runner:
docker model run hf.co/huranokuma/es2
Commit ·
9bfaa38
1
Parent(s): 2ae0559
Training in progress, step 5000
Browse files
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPT2LMHeadModel"
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "huranokuma/es2",
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPT2LMHeadModel"
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1369786201
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a059654dc696a983cd6770385c954fedc7f864a372db0bf8cb9caa13fc1a5422
|
| 3 |
size 1369786201
|
runs/Aug12_10-33-28_3f0a2cf25cdb/1660301684.1191247/events.out.tfevents.1660301684.3f0a2cf25cdb.443.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3961fd7ff7097f35d56a8cffc6ac30cd18965493d32773a83aca3dc9735bec1f
|
| 3 |
+
size 5364
|
runs/Aug12_10-33-28_3f0a2cf25cdb/events.out.tfevents.1660301684.3f0a2cf25cdb.443.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e7b8dc842bdcb19ca0c947688da68ba3a488ede02e563ecb3c1d59cb1901181
|
| 3 |
+
size 5480
|
tokenizer_config.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"eos_token": "</s>",
|
| 7 |
"extra_ids": 0,
|
| 8 |
"mask_token": "[MASK]",
|
| 9 |
-
"name_or_path": "
|
| 10 |
"pad_token": "[PAD]",
|
| 11 |
"sep_token": "[SEP]",
|
| 12 |
"sp_model_kwargs": {},
|
|
|
|
| 6 |
"eos_token": "</s>",
|
| 7 |
"extra_ids": 0,
|
| 8 |
"mask_token": "[MASK]",
|
| 9 |
+
"name_or_path": "huranokuma/es2",
|
| 10 |
"pad_token": "[PAD]",
|
| 11 |
"sep_token": "[SEP]",
|
| 12 |
"sp_model_kwargs": {},
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3375
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09998fa01d96396f74606b5f2af8360a1ab986f5d2e7554ef08b94893457a891
|
| 3 |
size 3375
|