Instructions to use Ksjsjjdj/hghj with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ksjsjjdj/hghj with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-3-270m") model = PeftModel.from_pretrained(base_model, "Ksjsjjdj/hghj") - Transformers
How to use Ksjsjjdj/hghj with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ksjsjjdj/hghj") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ksjsjjdj/hghj") model = AutoModelForCausalLM.from_pretrained("Ksjsjjdj/hghj") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Ksjsjjdj/hghj with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ksjsjjdj/hghj" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ksjsjjdj/hghj", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ksjsjjdj/hghj
- SGLang
How to use Ksjsjjdj/hghj 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 "Ksjsjjdj/hghj" \ --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": "Ksjsjjdj/hghj", "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 "Ksjsjjdj/hghj" \ --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": "Ksjsjjdj/hghj", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ksjsjjdj/hghj with Docker Model Runner:
docker model run hf.co/Ksjsjjdj/hghj
Live Checkpoint 3
Browse files- adapter_config.json +2 -2
- adapter_model.safetensors +2 -2
- optimizer.pt +2 -2
- rng_state.pth +2 -2
- trainer_state.json +6 -6
- training_args.bin +1 -1
adapter_config.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
| 16 |
"layers_pattern": null,
|
| 17 |
"layers_to_transform": null,
|
| 18 |
"loftq_config": {},
|
| 19 |
-
"lora_alpha":
|
| 20 |
"lora_bias": false,
|
| 21 |
"lora_dropout": 0.05,
|
| 22 |
"megatron_config": null,
|
|
@@ -25,7 +25,7 @@
|
|
| 25 |
"peft_type": "LORA",
|
| 26 |
"peft_version": "0.18.0",
|
| 27 |
"qalora_group_size": 16,
|
| 28 |
-
"r":
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
|
|
|
| 16 |
"layers_pattern": null,
|
| 17 |
"layers_to_transform": null,
|
| 18 |
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 512,
|
| 20 |
"lora_bias": false,
|
| 21 |
"lora_dropout": 0.05,
|
| 22 |
"megatron_config": null,
|
|
|
|
| 25 |
"peft_type": "LORA",
|
| 26 |
"peft_version": "0.18.0",
|
| 27 |
"qalora_group_size": 16,
|
| 28 |
+
"r": 256,
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"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:36c7253b4ba70ab65aa934ce811f7be3a0cf368aad73b4ac1bff12f95e9577da
|
| 3 |
+
size 94391240
|
optimizer.pt
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:fcbf02964e210661f85c4d37097b6f9327a6c0dd2b34d11224ee8d7d1d0b7850
|
| 3 |
+
size 188862155
|
rng_state.pth
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:e9e13dd4ca4af08228a91634a046f6bdd24626ae522be4fbdf8f03b3a08819fb
|
| 3 |
+
size 14391
|
trainer_state.json
CHANGED
|
@@ -11,23 +11,23 @@
|
|
| 11 |
"log_history": [
|
| 12 |
{
|
| 13 |
"epoch": 0.3333333333333333,
|
| 14 |
-
"grad_norm":
|
| 15 |
"learning_rate": 0.0002,
|
| 16 |
"loss": 2.2678,
|
| 17 |
"step": 1
|
| 18 |
},
|
| 19 |
{
|
| 20 |
"epoch": 0.6666666666666666,
|
| 21 |
-
"grad_norm":
|
| 22 |
"learning_rate": 0.00013333333333333334,
|
| 23 |
-
"loss":
|
| 24 |
"step": 2
|
| 25 |
},
|
| 26 |
{
|
| 27 |
"epoch": 1.0,
|
| 28 |
-
"grad_norm":
|
| 29 |
"learning_rate": 6.666666666666667e-05,
|
| 30 |
-
"loss":
|
| 31 |
"step": 3
|
| 32 |
}
|
| 33 |
],
|
|
@@ -48,7 +48,7 @@
|
|
| 48 |
"attributes": {}
|
| 49 |
}
|
| 50 |
},
|
| 51 |
-
"total_flos":
|
| 52 |
"train_batch_size": 1,
|
| 53 |
"trial_name": null,
|
| 54 |
"trial_params": null
|
|
|
|
| 11 |
"log_history": [
|
| 12 |
{
|
| 13 |
"epoch": 0.3333333333333333,
|
| 14 |
+
"grad_norm": 8.043458938598633,
|
| 15 |
"learning_rate": 0.0002,
|
| 16 |
"loss": 2.2678,
|
| 17 |
"step": 1
|
| 18 |
},
|
| 19 |
{
|
| 20 |
"epoch": 0.6666666666666666,
|
| 21 |
+
"grad_norm": 26.383363723754883,
|
| 22 |
"learning_rate": 0.00013333333333333334,
|
| 23 |
+
"loss": 2.4716,
|
| 24 |
"step": 2
|
| 25 |
},
|
| 26 |
{
|
| 27 |
"epoch": 1.0,
|
| 28 |
+
"grad_norm": 9.134888648986816,
|
| 29 |
"learning_rate": 6.666666666666667e-05,
|
| 30 |
+
"loss": 2.1976,
|
| 31 |
"step": 3
|
| 32 |
}
|
| 33 |
],
|
|
|
|
| 48 |
"attributes": {}
|
| 49 |
}
|
| 50 |
},
|
| 51 |
+
"total_flos": 1892242763520.0,
|
| 52 |
"train_batch_size": 1,
|
| 53 |
"trial_name": null,
|
| 54 |
"trial_params": null
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5905
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92ad46923c8c77887df1899b19b2cff8af20805ac59096ce09e3dac9d8652b47
|
| 3 |
size 5905
|