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 3300
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:43656207c8c8b1c110c0ba190988dd508e75dcc397268a6f6cc00728da8f3167
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -38,3 +38,13 @@
|
|
| 38 |
{"current_steps": 3180, "total_steps": 3886, "loss": 0.0115, "lr": 1.950149913669953e-06, "epoch": 1.6367262900527604, "percentage": 81.83, "elapsed_time": "5:55:13", "remaining_time": "1:18:51"}
|
| 39 |
{"current_steps": 3190, "total_steps": 3886, "loss": 0.0097, "lr": 1.89717573232572e-06, "epoch": 1.6418736327370995, "percentage": 82.09, "elapsed_time": "6:04:27", "remaining_time": "1:19:30"}
|
| 40 |
{"current_steps": 3200, "total_steps": 3886, "loss": 0.0098, "lr": 1.844855497120558e-06, "epoch": 1.6470209754214387, "percentage": 82.35, "elapsed_time": "6:13:24", "remaining_time": "1:20:03"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
{"current_steps": 3180, "total_steps": 3886, "loss": 0.0115, "lr": 1.950149913669953e-06, "epoch": 1.6367262900527604, "percentage": 81.83, "elapsed_time": "5:55:13", "remaining_time": "1:18:51"}
|
| 39 |
{"current_steps": 3190, "total_steps": 3886, "loss": 0.0097, "lr": 1.89717573232572e-06, "epoch": 1.6418736327370995, "percentage": 82.09, "elapsed_time": "6:04:27", "remaining_time": "1:19:30"}
|
| 40 |
{"current_steps": 3200, "total_steps": 3886, "loss": 0.0098, "lr": 1.844855497120558e-06, "epoch": 1.6470209754214387, "percentage": 82.35, "elapsed_time": "6:13:24", "remaining_time": "1:20:03"}
|
| 41 |
+
{"current_steps": 3210, "total_steps": 3886, "loss": 0.0099, "lr": 1.7931934306088082e-06, "epoch": 1.6521683181057778, "percentage": 82.6, "elapsed_time": "6:24:07", "remaining_time": "1:20:53"}
|
| 42 |
+
{"current_steps": 3220, "total_steps": 3886, "loss": 0.0102, "lr": 1.7421937022266921e-06, "epoch": 1.657315660790117, "percentage": 82.86, "elapsed_time": "6:33:25", "remaining_time": "1:21:22"}
|
| 43 |
+
{"current_steps": 3230, "total_steps": 3886, "loss": 0.0104, "lr": 1.691860427955785e-06, "epoch": 1.6624630034744563, "percentage": 83.12, "elapsed_time": "6:42:33", "remaining_time": "1:21:45"}
|
| 44 |
+
{"current_steps": 3240, "total_steps": 3886, "loss": 0.0102, "lr": 1.6421976699908636e-06, "epoch": 1.6676103461587957, "percentage": 83.38, "elapsed_time": "6:51:36", "remaining_time": "1:22:04"}
|
| 45 |
+
{"current_steps": 3250, "total_steps": 3886, "loss": 0.0099, "lr": 1.5932094364120453e-06, "epoch": 1.6727576888431348, "percentage": 83.63, "elapsed_time": "7:00:39", "remaining_time": "1:22:19"}
|
| 46 |
+
{"current_steps": 3260, "total_steps": 3886, "loss": 0.0099, "lr": 1.544899680861306e-06, "epoch": 1.677905031527474, "percentage": 83.89, "elapsed_time": "7:09:58", "remaining_time": "1:22:33"}
|
| 47 |
+
{"current_steps": 3270, "total_steps": 3886, "loss": 0.0106, "lr": 1.4972723022234214e-06, "epoch": 1.683052374211813, "percentage": 84.15, "elapsed_time": "7:19:10", "remaining_time": "1:22:43"}
|
| 48 |
+
{"current_steps": 3280, "total_steps": 3886, "loss": 0.0104, "lr": 1.45033114431128e-06, "epoch": 1.6881997168961522, "percentage": 84.41, "elapsed_time": "7:28:17", "remaining_time": "1:22:49"}
|
| 49 |
+
{"current_steps": 3290, "total_steps": 3886, "loss": 0.0101, "lr": 1.4040799955556771e-06, "epoch": 1.6933470595804916, "percentage": 84.66, "elapsed_time": "7:37:30", "remaining_time": "1:22:52"}
|
| 50 |
+
{"current_steps": 3300, "total_steps": 3886, "loss": 0.0095, "lr": 1.3585225886995613e-06, "epoch": 1.6984944022648307, "percentage": 84.92, "elapsed_time": "7:46:45", "remaining_time": "1:22:53"}
|