Text Generation
Transformers
Safetensors
qwen2
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use adpretko/train-riscv-O2_epoch3_AMD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adpretko/train-riscv-O2_epoch3_AMD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adpretko/train-riscv-O2_epoch3_AMD") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("adpretko/train-riscv-O2_epoch3_AMD") model = AutoModelForCausalLM.from_pretrained("adpretko/train-riscv-O2_epoch3_AMD") 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/train-riscv-O2_epoch3_AMD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adpretko/train-riscv-O2_epoch3_AMD" # 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/train-riscv-O2_epoch3_AMD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adpretko/train-riscv-O2_epoch3_AMD
- SGLang
How to use adpretko/train-riscv-O2_epoch3_AMD 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/train-riscv-O2_epoch3_AMD" \ --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/train-riscv-O2_epoch3_AMD", "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/train-riscv-O2_epoch3_AMD" \ --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/train-riscv-O2_epoch3_AMD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adpretko/train-riscv-O2_epoch3_AMD with Docker Model Runner:
docker model run hf.co/adpretko/train-riscv-O2_epoch3_AMD
Training in progress, step 300
Browse files- model.safetensors +1 -1
- trainer_log.jsonl +10 -0
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3554214752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d3736c20c0695cd8004475b4718be911e7bf0294719d9c285d941e0f7187fcb
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -18,3 +18,13 @@
|
|
| 18 |
{"current_steps": 180, "total_steps": 3886, "loss": 0.0116, "lr": 9.203084832904885e-06, "epoch": 0.09265216831810578, "percentage": 4.63, "elapsed_time": "2:49:30", "remaining_time": "2 days, 10:09:59"}
|
| 19 |
{"current_steps": 190, "total_steps": 3886, "loss": 0.0115, "lr": 9.717223650385606e-06, "epoch": 0.097799511002445, "percentage": 4.89, "elapsed_time": "2:58:45", "remaining_time": "2 days, 9:57:21"}
|
| 20 |
{"current_steps": 200, "total_steps": 3886, "loss": 0.0114, "lr": 1.0231362467866324e-05, "epoch": 0.1029468536867842, "percentage": 5.15, "elapsed_time": "3:08:01", "remaining_time": "2 days, 9:45:10"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
{"current_steps": 180, "total_steps": 3886, "loss": 0.0116, "lr": 9.203084832904885e-06, "epoch": 0.09265216831810578, "percentage": 4.63, "elapsed_time": "2:49:30", "remaining_time": "2 days, 10:09:59"}
|
| 19 |
{"current_steps": 190, "total_steps": 3886, "loss": 0.0115, "lr": 9.717223650385606e-06, "epoch": 0.097799511002445, "percentage": 4.89, "elapsed_time": "2:58:45", "remaining_time": "2 days, 9:57:21"}
|
| 20 |
{"current_steps": 200, "total_steps": 3886, "loss": 0.0114, "lr": 1.0231362467866324e-05, "epoch": 0.1029468536867842, "percentage": 5.15, "elapsed_time": "3:08:01", "remaining_time": "2 days, 9:45:10"}
|
| 21 |
+
{"current_steps": 210, "total_steps": 3886, "loss": 0.0119, "lr": 1.0745501285347045e-05, "epoch": 0.10809419637112341, "percentage": 5.4, "elapsed_time": "3:19:04", "remaining_time": "2 days, 10:04:39"}
|
| 22 |
+
{"current_steps": 220, "total_steps": 3886, "loss": 0.0116, "lr": 1.1259640102827764e-05, "epoch": 0.11324153905546262, "percentage": 5.66, "elapsed_time": "3:28:19", "remaining_time": "2 days, 9:51:34"}
|
| 23 |
+
{"current_steps": 230, "total_steps": 3886, "loss": 0.0122, "lr": 1.1773778920308486e-05, "epoch": 0.11838888173980183, "percentage": 5.92, "elapsed_time": "3:37:48", "remaining_time": "2 days, 9:42:04"}
|
| 24 |
+
{"current_steps": 240, "total_steps": 3886, "loss": 0.012, "lr": 1.2287917737789203e-05, "epoch": 0.12353622442414104, "percentage": 6.18, "elapsed_time": "3:47:15", "remaining_time": "2 days, 9:32:30"}
|
| 25 |
+
{"current_steps": 250, "total_steps": 3886, "loss": 0.0118, "lr": 1.2802056555269925e-05, "epoch": 0.12868356710848025, "percentage": 6.43, "elapsed_time": "3:56:20", "remaining_time": "2 days, 9:17:14"}
|
| 26 |
+
{"current_steps": 260, "total_steps": 3886, "loss": 0.0114, "lr": 1.3316195372750644e-05, "epoch": 0.13383090979281945, "percentage": 6.69, "elapsed_time": "4:05:29", "remaining_time": "2 days, 9:03:35"}
|
| 27 |
+
{"current_steps": 270, "total_steps": 3886, "loss": 0.012, "lr": 1.3830334190231362e-05, "epoch": 0.13897825247715867, "percentage": 6.95, "elapsed_time": "4:14:42", "remaining_time": "2 days, 8:51:14"}
|
| 28 |
+
{"current_steps": 280, "total_steps": 3886, "loss": 0.0119, "lr": 1.4344473007712083e-05, "epoch": 0.14412559516149787, "percentage": 7.21, "elapsed_time": "4:24:00", "remaining_time": "2 days, 8:40:09"}
|
| 29 |
+
{"current_steps": 290, "total_steps": 3886, "loss": 0.0126, "lr": 1.4858611825192803e-05, "epoch": 0.1492729378458371, "percentage": 7.46, "elapsed_time": "4:33:24", "remaining_time": "2 days, 8:30:11"}
|
| 30 |
+
{"current_steps": 300, "total_steps": 3886, "loss": 0.0123, "lr": 1.5372750642673522e-05, "epoch": 0.15442028053017628, "percentage": 7.72, "elapsed_time": "4:42:36", "remaining_time": "2 days, 8:18:06"}
|