Instructions to use khtsly/d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khtsly/d with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="khtsly/d", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("khtsly/d", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("khtsly/d", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use khtsly/d with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "khtsly/d" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "khtsly/d", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/khtsly/d
- SGLang
How to use khtsly/d 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 "khtsly/d" \ --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": "khtsly/d", "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 "khtsly/d" \ --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": "khtsly/d", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use khtsly/d with Docker Model Runner:
docker model run hf.co/khtsly/d
Commit History
2 days ago
-
periodic checkpoint @ step 17000
f1a671b -
periodic checkpoint @ step 16900
dbf8357 -
periodic checkpoint @ step 16800
16b3576 -
periodic checkpoint @ step 16700
4491d81 -
periodic checkpoint @ step 16600
d5dd1c7 -
periodic checkpoint @ step 16500
c4d2b82 -
periodic checkpoint @ step 16400
67723f7 -
periodic checkpoint @ step 16300
250b282 -
periodic checkpoint @ step 16200
f8b4aab -
periodic checkpoint @ step 16100
2d46731 -
periodic checkpoint @ step 16000
2a17a9a -
periodic checkpoint @ step 15900
4941a0c -
periodic checkpoint @ step 15800
24c749a
3 days ago
-
periodic checkpoint @ step 15700
cce2cd8 -
periodic checkpoint @ step 15600
f4fbc6a -
periodic checkpoint @ step 15500
1e0f9e8 -
periodic checkpoint @ step 15400
8d97c74 -
periodic checkpoint @ step 15300
ab2c4f0 -
periodic checkpoint @ step 15200
44e41f2 -
periodic checkpoint @ step 15000
e0aa237 -
periodic checkpoint @ step 14900
c9aa13f -
periodic checkpoint @ step 14800
7115c0d -
periodic checkpoint @ step 14700
4be4e50 -
periodic checkpoint @ step 14600
929320b -
periodic checkpoint @ step 14500
f7b0590 -
periodic checkpoint @ step 14400
95504b3 -
periodic checkpoint @ step 14300
80de005 -
periodic checkpoint @ step 14200
b916a1c -
periodic checkpoint @ step 14100
4f88105 -
periodic checkpoint @ step 14000
0416a06 -
periodic checkpoint @ step 13900
0be12a9 -
periodic checkpoint @ step 13800
3711337 -
periodic checkpoint @ step 13700
22cfd65 -
periodic checkpoint @ step 13600
ccaa8e5 -
periodic checkpoint @ step 13500
51d2d60 -
periodic checkpoint @ step 13400
2fe4f34 -
periodic checkpoint @ step 13300
2c63681 -
periodic checkpoint @ step 13200
fc83d3b -
periodic checkpoint @ step 13000
e7cf47d -
periodic checkpoint @ step 12900
ecb5e51 -
periodic checkpoint @ step 12800
5eeff89 -
periodic checkpoint @ step 12700
9898662 -
periodic checkpoint @ step 12600
14f1c1d -
periodic checkpoint @ step 12500
6e1a2b7 -
periodic checkpoint @ step 12400
6c4c2fa -
periodic checkpoint @ step 12300
cdddacd
4 days ago
-
periodic checkpoint @ step 12200
a3b0456 -
periodic checkpoint @ step 12100
e906f6b -
periodic checkpoint @ step 12000
c594bbd -
periodic checkpoint @ step 11900
3509399