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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huranokuma/es2") model = AutoModelForCausalLM.from_pretrained("huranokuma/es2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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 History
-
Update README.md
8657417
-
update model card README.md
483086f -
End of training
f15f7ba -
Model save
d8524b1
-
End of training
b974419 -
update model card README.md
e86f617 -
Model save
8e8f8f7 -
Training in progress, step 1000
5684508 -
End of training
49a3f25 -
update model card README.md
b947dde -
Model save
d5bfdbe -
Training in progress, step 1000
def1a91
-
End of training
7d43ce0 -
update model card README.md
6f4f294 -
Model save
d9b3a86 -
Training in progress, step 1000
34c1259
-
End of training
d3977bd -
update model card README.md
0d9b155 -
Model save
8d17415 -
update model card README.md
264aaec -
End of training
275dd30 -
Model save
f67f2bf -
Training in progress, step 1000
990ef35
-
update model card README.md
f0ef91d -
Model save
0f6d2f5 -
update model card README.md
de10365 -
End of training
d5e6d7b -
update model card README.md
177df34 -
Model save
a421bb3 -
update model card README.md
e078ba6 -
End of training
a5f1839 -
update model card README.md
87ec6ce -
Model save
51b628e
-
Training in progress, step 5000
70b853b -
Training in progress, step 1000
4e6598e -
End of training
c9df23c -
update model card README.md
09fd33b -
Model save
b1c5fa5 -
Training in progress, step 185000
91f6719 -
Training in progress, step 170000
ce41efa -
End of training
1efaabf -
update model card README.md
eec3fea -
Model save
5aa7623
-
Training in progress, step 5000
e7ffc93 -
update model card README.md
625adaf -
End of training
5a75e6c
-
update model card README.md
309fb2a -
Model save
75ad517 -
Training in progress, step 5000
9bfaa38
-
update model card README.md
2ae0559