Text Generation
Transformers
TensorBoard
Safetensors
gpt_neox
Generated from Trainer
text-generation-inference
Instructions to use MichaelKim/dacon_comp_hansoldeco_v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MichaelKim/dacon_comp_hansoldeco_v4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MichaelKim/dacon_comp_hansoldeco_v4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MichaelKim/dacon_comp_hansoldeco_v4") model = AutoModelForCausalLM.from_pretrained("MichaelKim/dacon_comp_hansoldeco_v4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MichaelKim/dacon_comp_hansoldeco_v4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MichaelKim/dacon_comp_hansoldeco_v4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MichaelKim/dacon_comp_hansoldeco_v4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MichaelKim/dacon_comp_hansoldeco_v4
- SGLang
How to use MichaelKim/dacon_comp_hansoldeco_v4 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 "MichaelKim/dacon_comp_hansoldeco_v4" \ --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": "MichaelKim/dacon_comp_hansoldeco_v4", "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 "MichaelKim/dacon_comp_hansoldeco_v4" \ --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": "MichaelKim/dacon_comp_hansoldeco_v4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MichaelKim/dacon_comp_hansoldeco_v4 with Docker Model Runner:
docker model run hf.co/MichaelKim/dacon_comp_hansoldeco_v4
Training in progress, epoch 1
Browse files
config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "heegyu/polyglot-ko-1.3b-chat",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"GPTNeoXForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": true,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
+
"classifier_dropout": 0.1,
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout": 0.0,
|
| 13 |
+
"hidden_size": 2048,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 8192,
|
| 16 |
+
"layer_norm_eps": 1e-05,
|
| 17 |
+
"max_position_embeddings": 2048,
|
| 18 |
+
"model_type": "gpt_neox",
|
| 19 |
+
"num_attention_heads": 16,
|
| 20 |
+
"num_hidden_layers": 24,
|
| 21 |
+
"rope_scaling": null,
|
| 22 |
+
"rotary_emb_base": 10000,
|
| 23 |
+
"rotary_pct": 0.5,
|
| 24 |
+
"tie_word_embeddings": false,
|
| 25 |
+
"torch_dtype": "float16",
|
| 26 |
+
"transformers_version": "4.37.0",
|
| 27 |
+
"use_cache": true,
|
| 28 |
+
"use_parallel_residual": true,
|
| 29 |
+
"vocab_size": 30080
|
| 30 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2b2f88dc7efaf2e3c3afe37e75ec37d8a43bc4b0758ec74974a419876f9ca4c
|
| 3 |
+
size 2663654864
|
runs/Feb23_23-16-18_b880a9e048f0/events.out.tfevents.1708730180.b880a9e048f0.34.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ab283ef49fc918c1caec2ca494972e31c03ff77990f23239693a9a8ceceac3a
|
| 3 |
+
size 4768
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a9117833cde6ab699decf796dbfe10e7ceb2dd59e0940f85581eb03adadfaf5
|
| 3 |
+
size 4728
|