Instructions to use minpeter/tiny-ko-random with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/tiny-ko-random with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/tiny-ko-random")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/tiny-ko-random") model = AutoModelForCausalLM.from_pretrained("minpeter/tiny-ko-random") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use minpeter/tiny-ko-random with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minpeter/tiny-ko-random" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minpeter/tiny-ko-random", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minpeter/tiny-ko-random
- SGLang
How to use minpeter/tiny-ko-random 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 "minpeter/tiny-ko-random" \ --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": "minpeter/tiny-ko-random", "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 "minpeter/tiny-ko-random" \ --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": "minpeter/tiny-ko-random", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minpeter/tiny-ko-random with Docker Model Runner:
docker model run hf.co/minpeter/tiny-ko-random
Upload Qwen3ForCausalLM
Browse files- config.json +1 -1
- model.safetensors +1 -1
config.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
"hidden_size": 480,
|
| 11 |
"initializer_range": 0.02,
|
| 12 |
"intermediate_size": 1920,
|
| 13 |
-
"max_position_embeddings":
|
| 14 |
"max_window_layers": 28,
|
| 15 |
"model_type": "qwen3",
|
| 16 |
"num_attention_heads": 6,
|
|
|
|
| 10 |
"hidden_size": 480,
|
| 11 |
"initializer_range": 0.02,
|
| 12 |
"intermediate_size": 1920,
|
| 13 |
+
"max_position_embeddings": 2048,
|
| 14 |
"max_window_layers": 28,
|
| 15 |
"model_type": "qwen3",
|
| 16 |
"num_attention_heads": 6,
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 541394944
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd11ad42d9687e54e7b80bded8c61cbbc9a0cb32cab77657c81bb33b884b19aa
|
| 3 |
size 541394944
|