Instructions to use m-a-p/Kun-LabelModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use m-a-p/Kun-LabelModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="m-a-p/Kun-LabelModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("m-a-p/Kun-LabelModel") model = AutoModelForCausalLM.from_pretrained("m-a-p/Kun-LabelModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use m-a-p/Kun-LabelModel with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "m-a-p/Kun-LabelModel" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "m-a-p/Kun-LabelModel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/m-a-p/Kun-LabelModel
- SGLang
How to use m-a-p/Kun-LabelModel 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 "m-a-p/Kun-LabelModel" \ --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": "m-a-p/Kun-LabelModel", "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 "m-a-p/Kun-LabelModel" \ --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": "m-a-p/Kun-LabelModel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use m-a-p/Kun-LabelModel with Docker Model Runner:
docker model run hf.co/m-a-p/Kun-LabelModel
Commit History
-
Upload train_results.json with huggingface_hub
1ea1805 -
Upload training_args.bin with huggingface_hub
d7ade8a -
Upload trainer_state.json with huggingface_hub
7ed14ed -
Upload tokenizer.model with huggingface_hub
6e22f99 -
Upload tokenizer_config.json with huggingface_hub
fa6459f -
Upload special_tokens_map.json with huggingface_hub
e1283a5 -
Upload model.safetensors.index.json with huggingface_hub
fa86764 -
Upload model.safetensors.index copy.json with huggingface_hub
54c68e6 -
Upload model-00031-of-00031.safetensors with huggingface_hub
ff58524 -
Upload model-00030-of-00031.safetensors with huggingface_hub
a5bc886 -
Upload model-00029-of-00031.safetensors with huggingface_hub
1e84acd -
Upload model-00028-of-00031.safetensors with huggingface_hub
3d0a737 -
Upload model-00027-of-00031.safetensors with huggingface_hub
3f2a707 -
Upload model-00026-of-00031.safetensors with huggingface_hub
3ed9662 -
Upload model-00025-of-00031.safetensors with huggingface_hub
9be8484 -
Upload model-00024-of-00031.safetensors with huggingface_hub
e04f918 -
Upload model-00023-of-00031.safetensors with huggingface_hub
4966a2b -
Upload model-00022-of-00031.safetensors with huggingface_hub
f762386 -
Upload model-00021-of-00031.safetensors with huggingface_hub
918dca1 -
Upload model-00020-of-00031.safetensors with huggingface_hub
144e505 -
Upload model-00019-of-00031.safetensors with huggingface_hub
108580b -
Upload model-00018-of-00031.safetensors with huggingface_hub
86b2000 -
Upload model-00017-of-00031.safetensors with huggingface_hub
ebb9abf -
Upload model-00016-of-00031.safetensors with huggingface_hub
16a4d13 -
Upload model-00015-of-00031.safetensors with huggingface_hub
1da17ca -
Upload model-00014-of-00031.safetensors with huggingface_hub
07c6a93 -
Upload model-00013-of-00031.safetensors with huggingface_hub
06fe784 -
Upload model-00012-of-00031.safetensors with huggingface_hub
e47fa06 -
Upload model-00011-of-00031.safetensors with huggingface_hub
907f487 -
Upload model-00010-of-00031.safetensors with huggingface_hub
9783c75 -
Upload model-00009-of-00031.safetensors with huggingface_hub
9d3bf5c -
Upload model-00008-of-00031.safetensors with huggingface_hub
22539bd -
Upload model-00007-of-00031.safetensors with huggingface_hub
1a23a6f -
Upload model-00006-of-00031.safetensors with huggingface_hub
6e5e18c -
Upload model-00005-of-00031.safetensors with huggingface_hub
224ee9d -
Upload model-00004-of-00031.safetensors with huggingface_hub
add36d5 -
Upload model-00003-of-00031.safetensors with huggingface_hub
07d1b61 -
Upload model-00002-of-00031.safetensors with huggingface_hub
4f355a3 -
Upload model-00001-of-00031.safetensors with huggingface_hub
b9e8980 -
Upload generation_config.json with huggingface_hub
e0cac4f -
Upload generation_config copy.json with huggingface_hub
f4c385d -
Upload config.json with huggingface_hub
611cf65 -
Upload config copy.json with huggingface_hub
7588ee4 -
Upload all_results.json with huggingface_hub
3ea9454 -
Upload config.json with huggingface_hub
aa6a1ec -
Upload all_results.json with huggingface_hub
b659e3b -
Delete 2
306e14e -
Delete 1
39ae87e -
Upload folder using huggingface_hub
5812057 -
Delete 1
c0719bf