Text Generation
Transformers
Safetensors
qwen2
llama-factory
Generated from Trainer
conversational
text-generation-inference
Instructions to use adpretko/train-riscv-O2_epoch1and2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adpretko/train-riscv-O2_epoch1and2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adpretko/train-riscv-O2_epoch1and2") 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("adpretko/train-riscv-O2_epoch1and2") model = AutoModelForCausalLM.from_pretrained("adpretko/train-riscv-O2_epoch1and2", 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 adpretko/train-riscv-O2_epoch1and2 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_epoch1and2" # 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_epoch1and2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adpretko/train-riscv-O2_epoch1and2
- SGLang
How to use adpretko/train-riscv-O2_epoch1and2 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_epoch1and2" \ --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_epoch1and2", "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_epoch1and2" \ --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_epoch1and2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adpretko/train-riscv-O2_epoch1and2 with Docker Model Runner:
docker model run hf.co/adpretko/train-riscv-O2_epoch1and2
Training in progress, step 800
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:2fd00729b6a2426a2e59dc40d423103d9eb486a7ebed8341cb098221d896f6af
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -68,3 +68,13 @@
|
|
| 68 |
{"current_steps": 680, "total_steps": 3886, "loss": 0.0202, "lr": 1.9662544397960182e-05, "epoch": 0.35001930253506625, "percentage": 17.5, "elapsed_time": "10:36:26", "remaining_time": "2 days, 2:00:36"}
|
| 69 |
{"current_steps": 690, "total_steps": 3886, "loss": 0.0205, "lr": 1.9639013780972958e-05, "epoch": 0.3551666452194055, "percentage": 17.76, "elapsed_time": "10:45:35", "remaining_time": "2 days, 1:50:17"}
|
| 70 |
{"current_steps": 700, "total_steps": 3886, "loss": 0.0206, "lr": 1.961470523821093e-05, "epoch": 0.3603139879037447, "percentage": 18.01, "elapsed_time": "10:54:45", "remaining_time": "2 days, 1:40:04"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
{"current_steps": 680, "total_steps": 3886, "loss": 0.0202, "lr": 1.9662544397960182e-05, "epoch": 0.35001930253506625, "percentage": 17.5, "elapsed_time": "10:36:26", "remaining_time": "2 days, 2:00:36"}
|
| 69 |
{"current_steps": 690, "total_steps": 3886, "loss": 0.0205, "lr": 1.9639013780972958e-05, "epoch": 0.3551666452194055, "percentage": 17.76, "elapsed_time": "10:45:35", "remaining_time": "2 days, 1:50:17"}
|
| 70 |
{"current_steps": 700, "total_steps": 3886, "loss": 0.0206, "lr": 1.961470523821093e-05, "epoch": 0.3603139879037447, "percentage": 18.01, "elapsed_time": "10:54:45", "remaining_time": "2 days, 1:40:04"}
|
| 71 |
+
{"current_steps": 710, "total_steps": 3886, "loss": 0.02, "lr": 1.9589620731518166e-05, "epoch": 0.3654613305880839, "percentage": 18.27, "elapsed_time": "11:05:26", "remaining_time": "2 days, 1:36:40"}
|
| 72 |
+
{"current_steps": 720, "total_steps": 3886, "loss": 0.0197, "lr": 1.956376228536363e-05, "epoch": 0.37060867327242314, "percentage": 18.53, "elapsed_time": "11:14:34", "remaining_time": "2 days, 1:26:14"}
|
| 73 |
+
{"current_steps": 730, "total_steps": 3886, "loss": 0.0203, "lr": 1.953713198667782e-05, "epoch": 0.37575601595676233, "percentage": 18.79, "elapsed_time": "11:23:45", "remaining_time": "2 days, 1:16:03"}
|
| 74 |
+
{"current_steps": 740, "total_steps": 3886, "loss": 0.0196, "lr": 1.950973198468431e-05, "epoch": 0.38090335864110153, "percentage": 19.04, "elapsed_time": "11:32:50", "remaining_time": "2 days, 1:05:30"}
|
| 75 |
+
{"current_steps": 750, "total_steps": 3886, "loss": 0.0202, "lr": 1.9481564490726327e-05, "epoch": 0.3860507013254407, "percentage": 19.3, "elapsed_time": "11:42:01", "remaining_time": "2 days, 0:55:22"}
|
| 76 |
+
{"current_steps": 760, "total_steps": 3886, "loss": 0.0192, "lr": 1.9452631778088262e-05, "epoch": 0.39119804400978, "percentage": 19.56, "elapsed_time": "11:51:06", "remaining_time": "2 days, 0:44:54"}
|
| 77 |
+
{"current_steps": 770, "total_steps": 3886, "loss": 0.0193, "lr": 1.94229361818122e-05, "epoch": 0.3963453866941192, "percentage": 19.81, "elapsed_time": "12:00:14", "remaining_time": "2 days, 0:34:37"}
|
| 78 |
+
{"current_steps": 780, "total_steps": 3886, "loss": 0.0193, "lr": 1.9392480098509488e-05, "epoch": 0.40149272937845837, "percentage": 20.07, "elapsed_time": "12:09:26", "remaining_time": "2 days, 0:24:41"}
|
| 79 |
+
{"current_steps": 790, "total_steps": 3886, "loss": 0.0195, "lr": 1.9361265986167292e-05, "epoch": 0.40664007206279756, "percentage": 20.33, "elapsed_time": "12:18:34", "remaining_time": "2 days, 0:14:27"}
|
| 80 |
+
{"current_steps": 800, "total_steps": 3886, "loss": 0.0192, "lr": 1.9329296363950237e-05, "epoch": 0.4117874147471368, "percentage": 20.59, "elapsed_time": "12:27:46", "remaining_time": "2 days, 0:04:32"}
|