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
Training in progress, step 150
Browse files
adapter_config.json
CHANGED
|
@@ -12,14 +12,14 @@
|
|
| 12 |
"layers_pattern": null,
|
| 13 |
"layers_to_transform": null,
|
| 14 |
"loftq_config": {},
|
| 15 |
-
"lora_alpha":
|
| 16 |
"lora_bias": false,
|
| 17 |
-
"lora_dropout": 0.
|
| 18 |
"megatron_config": null,
|
| 19 |
"megatron_core": "megatron.core",
|
| 20 |
"modules_to_save": null,
|
| 21 |
"peft_type": "LORA",
|
| 22 |
-
"r":
|
| 23 |
"rank_pattern": {},
|
| 24 |
"revision": null,
|
| 25 |
"target_modules": [
|
|
|
|
| 12 |
"layers_pattern": null,
|
| 13 |
"layers_to_transform": null,
|
| 14 |
"loftq_config": {},
|
| 15 |
+
"lora_alpha": 64,
|
| 16 |
"lora_bias": false,
|
| 17 |
+
"lora_dropout": 0.05,
|
| 18 |
"megatron_config": null,
|
| 19 |
"megatron_core": "megatron.core",
|
| 20 |
"modules_to_save": null,
|
| 21 |
"peft_type": "LORA",
|
| 22 |
+
"r": 16,
|
| 23 |
"rank_pattern": {},
|
| 24 |
"revision": null,
|
| 25 |
"target_modules": [
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbe04d966a19a3d7ef5381662761238a07559e1f96f512e991c0d175d310ba87
|
| 3 |
+
size 9022864
|
runs/Mar18_19-56-13_748987fec33b/events.out.tfevents.1742327791.748987fec33b.695.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3c0f8ac842cbb8fedc3a3b3effeda90833183a3cec151a4c513c4a986a5a173
|
| 3 |
+
size 13071
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d329b9395336a00ee273c74387e5c0967812a7a27c16ae27b26b1db1d8599117
|
| 3 |
+
size 5560
|