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 700
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:286141aedb943c16baebeb762309ad73c5e7bff085e8ab4919b4ff33a1c3de0f
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -58,3 +58,13 @@
|
|
| 58 |
{"current_steps": 580, "total_steps": 3886, "loss": 0.0231, "lr": 1.9854678123057144e-05, "epoch": 0.2985458756916742, "percentage": 14.93, "elapsed_time": "9:02:51", "remaining_time": "2 days, 3:34:16"}
|
| 59 |
{"current_steps": 590, "total_steps": 3886, "loss": 0.0218, "lr": 1.9839020781095873e-05, "epoch": 0.3036932183760134, "percentage": 15.18, "elapsed_time": "9:11:59", "remaining_time": "2 days, 3:23:37"}
|
| 60 |
{"current_steps": 600, "total_steps": 3886, "loss": 0.0223, "lr": 1.9822569371604637e-05, "epoch": 0.30884056106035257, "percentage": 15.44, "elapsed_time": "9:21:04", "remaining_time": "2 days, 3:12:50"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
{"current_steps": 580, "total_steps": 3886, "loss": 0.0231, "lr": 1.9854678123057144e-05, "epoch": 0.2985458756916742, "percentage": 14.93, "elapsed_time": "9:02:51", "remaining_time": "2 days, 3:34:16"}
|
| 59 |
{"current_steps": 590, "total_steps": 3886, "loss": 0.0218, "lr": 1.9839020781095873e-05, "epoch": 0.3036932183760134, "percentage": 15.18, "elapsed_time": "9:11:59", "remaining_time": "2 days, 3:23:37"}
|
| 60 |
{"current_steps": 600, "total_steps": 3886, "loss": 0.0223, "lr": 1.9822569371604637e-05, "epoch": 0.30884056106035257, "percentage": 15.44, "elapsed_time": "9:21:04", "remaining_time": "2 days, 3:12:50"}
|
| 61 |
+
{"current_steps": 610, "total_steps": 3886, "loss": 0.0207, "lr": 1.9805325222310072e-05, "epoch": 0.3139879037446918, "percentage": 15.7, "elapsed_time": "9:31:59", "remaining_time": "2 days, 3:11:55"}
|
| 62 |
+
{"current_steps": 620, "total_steps": 3886, "loss": 0.0217, "lr": 1.9787289724917657e-05, "epoch": 0.319135246429031, "percentage": 15.95, "elapsed_time": "9:41:13", "remaining_time": "2 days, 3:01:43"}
|
| 63 |
+
{"current_steps": 630, "total_steps": 3886, "loss": 0.0203, "lr": 1.9768464334999352e-05, "epoch": 0.3242825891133702, "percentage": 16.21, "elapsed_time": "9:50:23", "remaining_time": "2 days, 2:51:19"}
|
| 64 |
+
{"current_steps": 640, "total_steps": 3886, "loss": 0.0209, "lr": 1.974885057187617e-05, "epoch": 0.3294299317977094, "percentage": 16.47, "elapsed_time": "9:59:42", "remaining_time": "2 days, 2:41:41"}
|
| 65 |
+
{"current_steps": 650, "total_steps": 3886, "loss": 0.0211, "lr": 1.9728450018495506e-05, "epoch": 0.33457727448204866, "percentage": 16.73, "elapsed_time": "10:08:54", "remaining_time": "2 days, 2:31:26"}
|
| 66 |
+
{"current_steps": 660, "total_steps": 3886, "loss": 0.021, "lr": 1.9707264321303427e-05, "epoch": 0.33972461716638785, "percentage": 16.98, "elapsed_time": "10:18:10", "remaining_time": "2 days, 2:21:31"}
|
| 67 |
+
{"current_steps": 670, "total_steps": 3886, "loss": 0.0204, "lr": 1.9685295190111777e-05, "epoch": 0.34487195985072705, "percentage": 17.24, "elapsed_time": "10:27:16", "remaining_time": "2 days, 2:10:54"}
|
| 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"}
|