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 900
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:c7754f21803634ab2041e03b07ead8523ca77603cccfa32bbb236fd867e903fe
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -78,3 +78,13 @@
|
|
| 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"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"}
|
| 81 |
+
{"current_steps": 810, "total_steps": 3886, "loss": 0.0194, "lr": 1.929657381199709e-05, "epoch": 0.416934757431476, "percentage": 20.84, "elapsed_time": "12:38:38", "remaining_time": "2 days, 0:00:59"}
|
| 82 |
+
{"current_steps": 820, "total_steps": 3886, "loss": 0.0195, "lr": 1.9263100971212533e-05, "epoch": 0.4220821001158152, "percentage": 21.1, "elapsed_time": "12:47:45", "remaining_time": "1 day, 23:50:40"}
|
| 83 |
+
{"current_steps": 830, "total_steps": 3886, "loss": 0.0192, "lr": 1.922888054305401e-05, "epoch": 0.4272294428001544, "percentage": 21.36, "elapsed_time": "12:56:49", "remaining_time": "1 day, 23:40:14"}
|
| 84 |
+
{"current_steps": 840, "total_steps": 3886, "loss": 0.0186, "lr": 1.9193915289313726e-05, "epoch": 0.43237678548449365, "percentage": 21.62, "elapsed_time": "13:06:03", "remaining_time": "1 day, 23:30:25"}
|
| 85 |
+
{"current_steps": 850, "total_steps": 3886, "loss": 0.0182, "lr": 1.9158208031895738e-05, "epoch": 0.43752412816883285, "percentage": 21.87, "elapsed_time": "13:15:14", "remaining_time": "1 day, 23:20:26"}
|
| 86 |
+
{"current_steps": 860, "total_steps": 3886, "loss": 0.0188, "lr": 1.9121761652588217e-05, "epoch": 0.44267147085317204, "percentage": 22.13, "elapsed_time": "13:24:30", "remaining_time": "1 day, 23:10:46"}
|
| 87 |
+
{"current_steps": 870, "total_steps": 3886, "loss": 0.0182, "lr": 1.9084579092830873e-05, "epoch": 0.44781881353751124, "percentage": 22.39, "elapsed_time": "13:33:45", "remaining_time": "1 day, 23:01:01"}
|
| 88 |
+
{"current_steps": 880, "total_steps": 3886, "loss": 0.017, "lr": 1.904666335347755e-05, "epoch": 0.4529661562218505, "percentage": 22.65, "elapsed_time": "13:42:54", "remaining_time": "1 day, 22:50:59"}
|
| 89 |
+
{"current_steps": 890, "total_steps": 3886, "loss": 0.0223, "lr": 1.900801749455406e-05, "epoch": 0.4581134989061897, "percentage": 22.9, "elapsed_time": "13:52:00", "remaining_time": "1 day, 22:40:47"}
|
| 90 |
+
{"current_steps": 900, "total_steps": 3886, "loss": 0.0434, "lr": 1.8968644635011192e-05, "epoch": 0.4632608415905289, "percentage": 23.16, "elapsed_time": "14:01:17", "remaining_time": "1 day, 22:31:14"}
|