Text Generation
Transformers
Safetensors
qwen2
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use adpretko/ml815-model1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adpretko/ml815-model1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adpretko/ml815-model1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("adpretko/ml815-model1") model = AutoModelForCausalLM.from_pretrained("adpretko/ml815-model1") 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-model1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adpretko/ml815-model1" # 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-model1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adpretko/ml815-model1
- SGLang
How to use adpretko/ml815-model1 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-model1" \ --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-model1", "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-model1" \ --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-model1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adpretko/ml815-model1 with Docker Model Runner:
docker model run hf.co/adpretko/ml815-model1
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:36488f958edb1369f22c7af4f768340cd011866bc4ddf43a854d18f6e7c60cb7
|
| 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:7c01dd0c2f26511091e701800fce288a5c61a375be087ee72dbc227a872fde11
|
| 3 |
size 1178224960
|
trainer_log.jsonl
CHANGED
|
@@ -9,3 +9,13 @@
|
|
| 9 |
{"current_steps": 90, "total_steps": 309, "loss": 0.0669, "lr": 1.792779703083777e-05, "epoch": 0.2912621359223301, "percentage": 29.13, "elapsed_time": "0:10:31", "remaining_time": "0:25:36"}
|
| 10 |
{"current_steps": 100, "total_steps": 309, "loss": 0.06, "lr": 1.7189908153577473e-05, "epoch": 0.32362459546925565, "percentage": 32.36, "elapsed_time": "0:11:38", "remaining_time": "0:24:19"}
|
| 11 |
{"current_steps": 110, "total_steps": 309, "loss": 0.0588, "lr": 1.636029775176862e-05, "epoch": 0.3559870550161812, "percentage": 35.6, "elapsed_time": "0:13:37", "remaining_time": "0:24:38"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
{"current_steps": 90, "total_steps": 309, "loss": 0.0669, "lr": 1.792779703083777e-05, "epoch": 0.2912621359223301, "percentage": 29.13, "elapsed_time": "0:10:31", "remaining_time": "0:25:36"}
|
| 10 |
{"current_steps": 100, "total_steps": 309, "loss": 0.06, "lr": 1.7189908153577473e-05, "epoch": 0.32362459546925565, "percentage": 32.36, "elapsed_time": "0:11:38", "remaining_time": "0:24:19"}
|
| 11 |
{"current_steps": 110, "total_steps": 309, "loss": 0.0588, "lr": 1.636029775176862e-05, "epoch": 0.3559870550161812, "percentage": 35.6, "elapsed_time": "0:13:37", "remaining_time": "0:24:38"}
|
| 12 |
+
{"current_steps": 120, "total_steps": 309, "loss": 0.0574, "lr": 1.544954914987238e-05, "epoch": 0.3883495145631068, "percentage": 38.83, "elapsed_time": "0:14:50", "remaining_time": "0:23:22"}
|
| 13 |
+
{"current_steps": 130, "total_steps": 309, "loss": 0.0529, "lr": 1.4469280750858854e-05, "epoch": 0.42071197411003236, "percentage": 42.07, "elapsed_time": "0:15:54", "remaining_time": "0:21:53"}
|
| 14 |
+
{"current_steps": 140, "total_steps": 309, "loss": 0.0488, "lr": 1.3431997820456592e-05, "epoch": 0.45307443365695793, "percentage": 45.31, "elapsed_time": "0:17:03", "remaining_time": "0:20:35"}
|
| 15 |
+
{"current_steps": 150, "total_steps": 309, "loss": 0.0467, "lr": 1.2350932957710322e-05, "epoch": 0.4854368932038835, "percentage": 48.54, "elapsed_time": "0:18:05", "remaining_time": "0:19:10"}
|
| 16 |
+
{"current_steps": 160, "total_steps": 309, "loss": 0.046, "lr": 1.1239877286961123e-05, "epoch": 0.517799352750809, "percentage": 51.78, "elapsed_time": "0:19:08", "remaining_time": "0:17:49"}
|
| 17 |
+
{"current_steps": 170, "total_steps": 309, "loss": 0.0498, "lr": 1.01130045247298e-05, "epoch": 0.5501618122977346, "percentage": 55.02, "elapsed_time": "0:20:19", "remaining_time": "0:16:37"}
|
| 18 |
+
{"current_steps": 180, "total_steps": 309, "loss": 0.0437, "lr": 8.98469016587892e-06, "epoch": 0.5825242718446602, "percentage": 58.25, "elapsed_time": "0:21:26", "remaining_time": "0:15:21"}
|
| 19 |
+
{"current_steps": 190, "total_steps": 309, "loss": 0.0431, "lr": 7.869328095692313e-06, "epoch": 0.6148867313915858, "percentage": 61.49, "elapsed_time": "0:22:34", "remaining_time": "0:14:08"}
|
| 20 |
+
{"current_steps": 200, "total_steps": 309, "loss": 0.0435, "lr": 6.781146967348283e-06, "epoch": 0.6472491909385113, "percentage": 64.72, "elapsed_time": "0:23:40", "remaining_time": "0:12:54"}
|
| 21 |
+
{"current_steps": 210, "total_steps": 309, "loss": 0.0368, "lr": 5.7340286872557515e-06, "epoch": 0.6796116504854369, "percentage": 67.96, "elapsed_time": "0:25:31", "remaining_time": "0:12:01"}
|