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)# 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") 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]:])) - Inference
- 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 2600
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:e87cad7cdcb87574504965e12e64e6f9ba810008d395390724f56207bc4f16c4
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -248,3 +248,13 @@
|
|
| 248 |
{"current_steps": 2480, "total_steps": 3886, "loss": 0.0124, "lr": 6.979973960715958e-06, "epoch": 1.2764123021490157, "percentage": 63.82, "elapsed_time": "1 day, 14:38:19", "remaining_time": "21:54:20"}
|
| 249 |
{"current_steps": 2490, "total_steps": 3886, "loss": 0.0113, "lr": 6.894454927038907e-06, "epoch": 1.2815596448333548, "percentage": 64.08, "elapsed_time": "1 day, 14:47:28", "remaining_time": "21:44:53"}
|
| 250 |
{"current_steps": 2500, "total_steps": 3886, "loss": 0.012, "lr": 6.809186529330639e-06, "epoch": 1.286706987517694, "percentage": 64.33, "elapsed_time": "1 day, 14:56:45", "remaining_time": "21:35:30"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
{"current_steps": 2480, "total_steps": 3886, "loss": 0.0124, "lr": 6.979973960715958e-06, "epoch": 1.2764123021490157, "percentage": 63.82, "elapsed_time": "1 day, 14:38:19", "remaining_time": "21:54:20"}
|
| 249 |
{"current_steps": 2490, "total_steps": 3886, "loss": 0.0113, "lr": 6.894454927038907e-06, "epoch": 1.2815596448333548, "percentage": 64.08, "elapsed_time": "1 day, 14:47:28", "remaining_time": "21:44:53"}
|
| 250 |
{"current_steps": 2500, "total_steps": 3886, "loss": 0.012, "lr": 6.809186529330639e-06, "epoch": 1.286706987517694, "percentage": 64.33, "elapsed_time": "1 day, 14:56:45", "remaining_time": "21:35:30"}
|
| 251 |
+
{"current_steps": 2510, "total_steps": 3886, "loss": 0.0126, "lr": 6.724175649258287e-06, "epoch": 1.291854330202033, "percentage": 64.59, "elapsed_time": "1 day, 15:07:49", "remaining_time": "21:27:05"}
|
| 252 |
+
{"current_steps": 2520, "total_steps": 3886, "loss": 0.0116, "lr": 6.6394291477057736e-06, "epoch": 1.2970016728863725, "percentage": 64.85, "elapsed_time": "1 day, 15:16:58", "remaining_time": "21:17:37"}
|
| 253 |
+
{"current_steps": 2530, "total_steps": 3886, "loss": 0.0121, "lr": 6.554953864220115e-06, "epoch": 1.3021490155707116, "percentage": 65.11, "elapsed_time": "1 day, 15:26:10", "remaining_time": "21:08:11"}
|
| 254 |
+
{"current_steps": 2540, "total_steps": 3886, "loss": 0.0116, "lr": 6.4707566164594105e-06, "epoch": 1.3072963582550507, "percentage": 65.36, "elapsed_time": "1 day, 15:35:13", "remaining_time": "20:58:40"}
|
| 255 |
+
{"current_steps": 2550, "total_steps": 3886, "loss": 0.0117, "lr": 6.386844199642619e-06, "epoch": 1.3124437009393901, "percentage": 65.62, "elapsed_time": "1 day, 15:44:26", "remaining_time": "20:49:15"}
|
| 256 |
+
{"current_steps": 2560, "total_steps": 3886, "loss": 0.0124, "lr": 6.30322338600114e-06, "epoch": 1.3175910436237293, "percentage": 65.88, "elapsed_time": "1 day, 15:53:35", "remaining_time": "20:39:48"}
|
| 257 |
+
{"current_steps": 2570, "total_steps": 3886, "loss": 0.011, "lr": 6.219900924232279e-06, "epoch": 1.3227383863080684, "percentage": 66.13, "elapsed_time": "1 day, 16:02:38", "remaining_time": "20:30:18"}
|
| 258 |
+
{"current_steps": 2580, "total_steps": 3886, "loss": 0.012, "lr": 6.136883538954561e-06, "epoch": 1.3278857289924075, "percentage": 66.39, "elapsed_time": "1 day, 16:11:48", "remaining_time": "20:20:51"}
|
| 259 |
+
{"current_steps": 2590, "total_steps": 3886, "loss": 0.0111, "lr": 6.054177930165017e-06, "epoch": 1.333033071676747, "percentage": 66.65, "elapsed_time": "1 day, 16:20:56", "remaining_time": "20:11:24"}
|
| 260 |
+
{"current_steps": 2600, "total_steps": 3886, "loss": 0.0114, "lr": 5.971790772698467e-06, "epoch": 1.338180414361086, "percentage": 66.91, "elapsed_time": "1 day, 16:30:05", "remaining_time": "20:01:57"}
|