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 400
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:5bf1333a19ad6883b5261c2a332e9426563ff7c923deda077fb7547960b72c87
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -28,3 +28,13 @@
|
|
| 28 |
{"current_steps": 280, "total_steps": 3886, "loss": 0.0334, "lr": 1.4344473007712083e-05, "epoch": 0.14412559516149787, "percentage": 7.21, "elapsed_time": "4:21:49", "remaining_time": "2 days, 8:11:52"}
|
| 29 |
{"current_steps": 290, "total_steps": 3886, "loss": 0.0343, "lr": 1.4858611825192803e-05, "epoch": 0.1492729378458371, "percentage": 7.46, "elapsed_time": "4:31:08", "remaining_time": "2 days, 8:02:11"}
|
| 30 |
{"current_steps": 300, "total_steps": 3886, "loss": 0.033, "lr": 1.5372750642673522e-05, "epoch": 0.15442028053017628, "percentage": 7.72, "elapsed_time": "4:40:16", "remaining_time": "2 days, 7:50:11"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
{"current_steps": 280, "total_steps": 3886, "loss": 0.0334, "lr": 1.4344473007712083e-05, "epoch": 0.14412559516149787, "percentage": 7.21, "elapsed_time": "4:21:49", "remaining_time": "2 days, 8:11:52"}
|
| 29 |
{"current_steps": 290, "total_steps": 3886, "loss": 0.0343, "lr": 1.4858611825192803e-05, "epoch": 0.1492729378458371, "percentage": 7.46, "elapsed_time": "4:31:08", "remaining_time": "2 days, 8:02:11"}
|
| 30 |
{"current_steps": 300, "total_steps": 3886, "loss": 0.033, "lr": 1.5372750642673522e-05, "epoch": 0.15442028053017628, "percentage": 7.72, "elapsed_time": "4:40:16", "remaining_time": "2 days, 7:50:11"}
|
| 31 |
+
{"current_steps": 310, "total_steps": 3886, "loss": 0.0321, "lr": 1.5886889460154242e-05, "epoch": 0.1595676232145155, "percentage": 7.98, "elapsed_time": "4:51:06", "remaining_time": "2 days, 7:58:04"}
|
| 32 |
+
{"current_steps": 320, "total_steps": 3886, "loss": 0.0321, "lr": 1.640102827763496e-05, "epoch": 0.1647149658988547, "percentage": 8.23, "elapsed_time": "5:00:20", "remaining_time": "2 days, 7:46:58"}
|
| 33 |
+
{"current_steps": 330, "total_steps": 3886, "loss": 0.0314, "lr": 1.6915167095115684e-05, "epoch": 0.16986230858319393, "percentage": 8.49, "elapsed_time": "5:09:29", "remaining_time": "2 days, 7:34:58"}
|
| 34 |
+
{"current_steps": 340, "total_steps": 3886, "loss": 0.03, "lr": 1.74293059125964e-05, "epoch": 0.17500965126753312, "percentage": 8.75, "elapsed_time": "5:18:46", "remaining_time": "2 days, 7:24:39"}
|
| 35 |
+
{"current_steps": 350, "total_steps": 3886, "loss": 0.0307, "lr": 1.7943444730077123e-05, "epoch": 0.18015699395187235, "percentage": 9.01, "elapsed_time": "5:28:00", "remaining_time": "2 days, 7:13:44"}
|
| 36 |
+
{"current_steps": 360, "total_steps": 3886, "loss": 0.0288, "lr": 1.8457583547557843e-05, "epoch": 0.18530433663621157, "percentage": 9.26, "elapsed_time": "5:37:00", "remaining_time": "2 days, 7:00:50"}
|
| 37 |
+
{"current_steps": 370, "total_steps": 3886, "loss": 0.0295, "lr": 1.8971722365038563e-05, "epoch": 0.19045167932055077, "percentage": 9.52, "elapsed_time": "5:46:16", "remaining_time": "2 days, 6:50:28"}
|
| 38 |
+
{"current_steps": 380, "total_steps": 3886, "loss": 0.0288, "lr": 1.9485861182519282e-05, "epoch": 0.19559902200489, "percentage": 9.78, "elapsed_time": "5:55:26", "remaining_time": "2 days, 6:39:23"}
|
| 39 |
+
{"current_steps": 390, "total_steps": 3886, "loss": 0.0287, "lr": 2e-05, "epoch": 0.20074636468922918, "percentage": 10.04, "elapsed_time": "6:04:38", "remaining_time": "2 days, 6:28:37"}
|
| 40 |
+
{"current_steps": 400, "total_steps": 3886, "loss": 0.0286, "lr": 1.999959647024453e-05, "epoch": 0.2058937073735684, "percentage": 10.29, "elapsed_time": "6:13:53", "remaining_time": "2 days, 6:18:24"}
|