Text Generation
Transformers
Safetensors
qwen2
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use adpretko/ml815-model4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adpretko/ml815-model4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adpretko/ml815-model4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("adpretko/ml815-model4") model = AutoModelForCausalLM.from_pretrained("adpretko/ml815-model4") 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 Settings
- vLLM
How to use adpretko/ml815-model4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adpretko/ml815-model4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adpretko/ml815-model4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adpretko/ml815-model4
- SGLang
How to use adpretko/ml815-model4 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 "adpretko/ml815-model4" \ --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": "adpretko/ml815-model4", "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 "adpretko/ml815-model4" \ --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": "adpretko/ml815-model4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adpretko/ml815-model4 with Docker Model Runner:
docker model run hf.co/adpretko/ml815-model4
Training in progress, step 200
Browse files- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
- trainer_log.jsonl +10 -0
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4996670464
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c210e2c1df4b376b35f11de4e85290fb9771330352bfb867fc2ad8e095dcd22
|
| 3 |
size 4996670464
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1178224960
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74314bb96e9d7c89ad0e2651fcdbb0f3632c8a01b42df459ff0aa0eace14478b
|
| 3 |
size 1178224960
|
trainer_log.jsonl
CHANGED
|
@@ -9,3 +9,13 @@
|
|
| 9 |
{"current_steps": 90, "total_steps": 309, "loss": 0.0664, "lr": 1.792779703083777e-05, "epoch": 0.2912621359223301, "percentage": 29.13, "elapsed_time": "0:10:11", "remaining_time": "0:24:49"}
|
| 10 |
{"current_steps": 100, "total_steps": 309, "loss": 0.0591, "lr": 1.7189908153577473e-05, "epoch": 0.32362459546925565, "percentage": 32.36, "elapsed_time": "0:11:16", "remaining_time": "0:23:34"}
|
| 11 |
{"current_steps": 110, "total_steps": 309, "loss": 0.0583, "lr": 1.636029775176862e-05, "epoch": 0.3559870550161812, "percentage": 35.6, "elapsed_time": "0:13:11", "remaining_time": "0:23:51"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
{"current_steps": 90, "total_steps": 309, "loss": 0.0664, "lr": 1.792779703083777e-05, "epoch": 0.2912621359223301, "percentage": 29.13, "elapsed_time": "0:10:11", "remaining_time": "0:24:49"}
|
| 10 |
{"current_steps": 100, "total_steps": 309, "loss": 0.0591, "lr": 1.7189908153577473e-05, "epoch": 0.32362459546925565, "percentage": 32.36, "elapsed_time": "0:11:16", "remaining_time": "0:23:34"}
|
| 11 |
{"current_steps": 110, "total_steps": 309, "loss": 0.0583, "lr": 1.636029775176862e-05, "epoch": 0.3559870550161812, "percentage": 35.6, "elapsed_time": "0:13:11", "remaining_time": "0:23:51"}
|
| 12 |
+
{"current_steps": 120, "total_steps": 309, "loss": 0.0569, "lr": 1.544954914987238e-05, "epoch": 0.3883495145631068, "percentage": 38.83, "elapsed_time": "0:14:22", "remaining_time": "0:22:38"}
|
| 13 |
+
{"current_steps": 130, "total_steps": 309, "loss": 0.0524, "lr": 1.4469280750858854e-05, "epoch": 0.42071197411003236, "percentage": 42.07, "elapsed_time": "0:15:24", "remaining_time": "0:21:13"}
|
| 14 |
+
{"current_steps": 140, "total_steps": 309, "loss": 0.0487, "lr": 1.3431997820456592e-05, "epoch": 0.45307443365695793, "percentage": 45.31, "elapsed_time": "0:16:32", "remaining_time": "0:19:58"}
|
| 15 |
+
{"current_steps": 150, "total_steps": 309, "loss": 0.0463, "lr": 1.2350932957710322e-05, "epoch": 0.4854368932038835, "percentage": 48.54, "elapsed_time": "0:17:34", "remaining_time": "0:18:37"}
|
| 16 |
+
{"current_steps": 160, "total_steps": 309, "loss": 0.0462, "lr": 1.1239877286961123e-05, "epoch": 0.517799352750809, "percentage": 51.78, "elapsed_time": "0:18:35", "remaining_time": "0:17:18"}
|
| 17 |
+
{"current_steps": 170, "total_steps": 309, "loss": 0.0495, "lr": 1.01130045247298e-05, "epoch": 0.5501618122977346, "percentage": 55.02, "elapsed_time": "0:19:44", "remaining_time": "0:16:08"}
|
| 18 |
+
{"current_steps": 180, "total_steps": 309, "loss": 0.0438, "lr": 8.98469016587892e-06, "epoch": 0.5825242718446602, "percentage": 58.25, "elapsed_time": "0:20:50", "remaining_time": "0:14:55"}
|
| 19 |
+
{"current_steps": 190, "total_steps": 309, "loss": 0.0428, "lr": 7.869328095692313e-06, "epoch": 0.6148867313915858, "percentage": 61.49, "elapsed_time": "0:21:57", "remaining_time": "0:13:45"}
|
| 20 |
+
{"current_steps": 200, "total_steps": 309, "loss": 0.043, "lr": 6.781146967348283e-06, "epoch": 0.6472491909385113, "percentage": 64.72, "elapsed_time": "0:23:01", "remaining_time": "0:12:33"}
|
| 21 |
+
{"current_steps": 210, "total_steps": 309, "loss": 0.0367, "lr": 5.7340286872557515e-06, "epoch": 0.6796116504854369, "percentage": 67.96, "elapsed_time": "0:24:48", "remaining_time": "0:11:41"}
|