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 1600
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:d61d87f3c47a57d37c9f2939762571f2b4ca862d4aff8f2e9d4208d45d0cf449
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -148,3 +148,13 @@
|
|
| 148 |
{"current_steps": 1480, "total_steps": 3886, "loss": 0.0149, "lr": 1.5576692982508665e-05, "epoch": 0.7618067172822031, "percentage": 38.09, "elapsed_time": "23:03:04", "remaining_time": "1 day, 13:28:26"}
|
| 149 |
{"current_steps": 1490, "total_steps": 3886, "loss": 0.0149, "lr": 1.550189873142219e-05, "epoch": 0.7669540599665423, "percentage": 38.34, "elapsed_time": "23:12:16", "remaining_time": "1 day, 13:18:50"}
|
| 150 |
{"current_steps": 1500, "total_steps": 3886, "loss": 0.0147, "lr": 1.542666044436577e-05, "epoch": 0.7721014026508815, "percentage": 38.6, "elapsed_time": "23:21:26", "remaining_time": "1 day, 13:09:13"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
{"current_steps": 1480, "total_steps": 3886, "loss": 0.0149, "lr": 1.5576692982508665e-05, "epoch": 0.7618067172822031, "percentage": 38.09, "elapsed_time": "23:03:04", "remaining_time": "1 day, 13:28:26"}
|
| 149 |
{"current_steps": 1490, "total_steps": 3886, "loss": 0.0149, "lr": 1.550189873142219e-05, "epoch": 0.7669540599665423, "percentage": 38.34, "elapsed_time": "23:12:16", "remaining_time": "1 day, 13:18:50"}
|
| 150 |
{"current_steps": 1500, "total_steps": 3886, "loss": 0.0147, "lr": 1.542666044436577e-05, "epoch": 0.7721014026508815, "percentage": 38.6, "elapsed_time": "23:21:26", "remaining_time": "1 day, 13:09:13"}
|
| 151 |
+
{"current_steps": 1510, "total_steps": 3886, "loss": 0.0152, "lr": 1.5350984193516917e-05, "epoch": 0.7772487453352207, "percentage": 38.86, "elapsed_time": "23:32:24", "remaining_time": "1 day, 13:02:25"}
|
| 152 |
+
{"current_steps": 1520, "total_steps": 3886, "loss": 0.0147, "lr": 1.5274876086399444e-05, "epoch": 0.78239608801956, "percentage": 39.11, "elapsed_time": "23:41:31", "remaining_time": "1 day, 12:52:43"}
|
| 153 |
+
{"current_steps": 1530, "total_steps": 3886, "loss": 0.0144, "lr": 1.5198342265390511e-05, "epoch": 0.7875434307038991, "percentage": 39.37, "elapsed_time": "23:50:45", "remaining_time": "1 day, 12:43:10"}
|
| 154 |
+
{"current_steps": 1540, "total_steps": 3886, "loss": 0.0148, "lr": 1.512138890722494e-05, "epoch": 0.7926907733882383, "percentage": 39.63, "elapsed_time": "23:59:59", "remaining_time": "1 day, 12:33:38"}
|
| 155 |
+
{"current_steps": 1550, "total_steps": 3886, "loss": 0.0153, "lr": 1.5044022222496684e-05, "epoch": 0.7978381160725775, "percentage": 39.89, "elapsed_time": "1 day, 0:09:14", "remaining_time": "1 day, 12:24:08"}
|
| 156 |
+
{"current_steps": 1560, "total_steps": 3886, "loss": 0.0143, "lr": 1.4966248455157622e-05, "epoch": 0.8029854587569167, "percentage": 40.14, "elapsed_time": "1 day, 0:18:29", "remaining_time": "1 day, 12:14:39"}
|
| 157 |
+
{"current_steps": 1570, "total_steps": 3886, "loss": 0.0143, "lr": 1.4888073882013616e-05, "epoch": 0.808132801441256, "percentage": 40.4, "elapsed_time": "1 day, 0:27:41", "remaining_time": "1 day, 12:05:04"}
|
| 158 |
+
{"current_steps": 1580, "total_steps": 3886, "loss": 0.0145, "lr": 1.480950481221795e-05, "epoch": 0.8132801441255951, "percentage": 40.66, "elapsed_time": "1 day, 0:36:52", "remaining_time": "1 day, 11:55:30"}
|
| 159 |
+
{"current_steps": 1590, "total_steps": 3886, "loss": 0.0139, "lr": 1.4730547586762114e-05, "epoch": 0.8184274868099344, "percentage": 40.92, "elapsed_time": "1 day, 0:45:59", "remaining_time": "1 day, 11:45:49"}
|
| 160 |
+
{"current_steps": 1600, "total_steps": 3886, "loss": 0.0149, "lr": 1.4651208577964099e-05, "epoch": 0.8235748294942736, "percentage": 41.17, "elapsed_time": "1 day, 0:55:11", "remaining_time": "1 day, 11:36:14"}
|