Instructions to use KVN03/Darnell with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KVN03/Darnell with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KVN03/Darnell") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KVN03/Darnell") model = AutoModelForCausalLM.from_pretrained("KVN03/Darnell", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KVN03/Darnell with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KVN03/Darnell" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KVN03/Darnell", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KVN03/Darnell
- SGLang
How to use KVN03/Darnell 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 "KVN03/Darnell" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KVN03/Darnell", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "KVN03/Darnell" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KVN03/Darnell", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KVN03/Darnell with Docker Model Runner:
docker model run hf.co/KVN03/Darnell
Commit History
-
Upload LlamaForCausalLM
Verified signature0f33055 -
Training in progress, step 15000
Verified signature0036ef0 -
Training in progress, step 10000
Verified signaturecf19972 -
Training in progress, step 5000
Verified signature66c9452
-
Training in progress, step 12000
Verified signaturec7a6acc -
Training in progress, step 10000
Verified signature13ec9f7 -
Training in progress, step 8000
Verified signature86aa7b3 -
Training in progress, step 6000
Verified signature563526d
-
Training in progress, step 4000
Verified signatureac768c4 -
Training in progress, step 2000
Verified signaturee4b40f7 -
Training in progress, step 2000
Verified signaturebde7883 -
Training in progress, step 15000
Verified signature6850f43
-
Training in progress, step 10000
Verified signature245237b -
Training in progress, step 5000
Verified signature8ea8ae8 -
Training in progress, step 10000
Verified signature0e48d7e -
Training in progress, step 5000
Verified signaturea698846
-
Training in progress, step 10000
Verified signature33f3085 -
Training in progress, step 5000
Verified signature92bc75f
-
Training in progress, step 4000
Verified signaturee80a909 -
Training in progress, step 2000
Verified signatureb4ff33b
-
Upload LlamaForCausalLM
Verified signatured9ad4a7 -
Training in progress, step 3000
Verified signaturec59ce88 -
Training in progress, step 2000
Verified signature8537c76 -
Training in progress, step 1000
Verified signature67fb563
-
Training in progress, step 900
Verified signature7d4a244 -
Training in progress, step 750
Verified signature40d02d9 -
Training in progress, step 600
Verified signature60efb27 -
Training in progress, step 450
Verified signature519961c -
Training in progress, step 300
Verified signaturefb0c418 -
Training in progress, step 150
Verified signature57e3efc -
Training in progress, epoch 2
Verified signature49126c9 -
Training in progress, epoch 1
Verified signature303d83a -
Upload LlamaForCausalLM
Verified signature0991688 -
Training in progress, epoch 27
Verified signature298bc88 -
Training in progress, epoch 27
Verified signature212f4b1 -
Training in progress, epoch 26
Verified signatured89ef78 -
Training in progress, epoch 25
Verified signatured7cef21 -
Training in progress, epoch 24
Verified signaturec055968 -
Training in progress, epoch 23
Verified signature8ce4ee1 -
Training in progress, epoch 22
Verified signature053f4d7 -
Training in progress, epoch 21
Verified signature74198d8 -
Training in progress, epoch 20
Verified signature87a39a2 -
Training in progress, epoch 19
Verified signature86b3b81 -
Training in progress, epoch 18
Verified signatureb520c5a -
Training in progress, epoch 17
Verified signature94b93bc -
Training in progress, epoch 16
Verified signature74e5f1b -
Training in progress, epoch 15
Verified signature707c7ef -
Training in progress, epoch 14
Verified signature0a7b113 -
Training in progress, epoch 13
Verified signatured951932 -
Training in progress, epoch 12
Verified signature88325fa