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 1800
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:df7d9ae75340cc3fbf56f47c5c5087f5b5a9cba3faac02db6004ef42f3ee1ce8
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -168,3 +168,13 @@
|
|
| 168 |
{"current_steps": 1680, "total_steps": 3886, "loss": 0.0152, "lr": 1.4003526913576555e-05, "epoch": 0.8647535709689873, "percentage": 43.23, "elapsed_time": "1 day, 2:10:13", "remaining_time": "1 day, 10:21:51"}
|
| 169 |
{"current_steps": 1690, "total_steps": 3886, "loss": 0.0137, "lr": 1.392104352137426e-05, "epoch": 0.8699009136533264, "percentage": 43.49, "elapsed_time": "1 day, 2:19:25", "remaining_time": "1 day, 10:12:18"}
|
| 170 |
{"current_steps": 1700, "total_steps": 3886, "loss": 0.0145, "lr": 1.3838243677625292e-05, "epoch": 0.8750482563376657, "percentage": 43.75, "elapsed_time": "1 day, 2:28:40", "remaining_time": "1 day, 10:02:51"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
{"current_steps": 1680, "total_steps": 3886, "loss": 0.0152, "lr": 1.4003526913576555e-05, "epoch": 0.8647535709689873, "percentage": 43.23, "elapsed_time": "1 day, 2:10:13", "remaining_time": "1 day, 10:21:51"}
|
| 169 |
{"current_steps": 1690, "total_steps": 3886, "loss": 0.0137, "lr": 1.392104352137426e-05, "epoch": 0.8699009136533264, "percentage": 43.49, "elapsed_time": "1 day, 2:19:25", "remaining_time": "1 day, 10:12:18"}
|
| 170 |
{"current_steps": 1700, "total_steps": 3886, "loss": 0.0145, "lr": 1.3838243677625292e-05, "epoch": 0.8750482563376657, "percentage": 43.75, "elapsed_time": "1 day, 2:28:40", "remaining_time": "1 day, 10:02:51"}
|
| 171 |
+
{"current_steps": 1710, "total_steps": 3886, "loss": 0.0144, "lr": 1.3755134064769788e-05, "epoch": 0.8801955990220048, "percentage": 44.0, "elapsed_time": "1 day, 2:39:26", "remaining_time": "1 day, 9:55:19"}
|
| 172 |
+
{"current_steps": 1720, "total_steps": 3886, "loss": 0.0138, "lr": 1.36717213902481e-05, "epoch": 0.8853429417063441, "percentage": 44.26, "elapsed_time": "1 day, 2:48:35", "remaining_time": "1 day, 9:45:42"}
|
| 173 |
+
{"current_steps": 1730, "total_steps": 3886, "loss": 0.0148, "lr": 1.3588012385959464e-05, "epoch": 0.8904902843906833, "percentage": 44.52, "elapsed_time": "1 day, 2:57:57", "remaining_time": "1 day, 9:36:21"}
|
| 174 |
+
{"current_steps": 1740, "total_steps": 3886, "loss": 0.014, "lr": 1.350401380771868e-05, "epoch": 0.8956376270750225, "percentage": 44.78, "elapsed_time": "1 day, 3:07:18", "remaining_time": "1 day, 9:27:00"}
|
| 175 |
+
{"current_steps": 1750, "total_steps": 3886, "loss": 0.0134, "lr": 1.3419732434710895e-05, "epoch": 0.9007849697593617, "percentage": 45.03, "elapsed_time": "1 day, 3:16:23", "remaining_time": "1 day, 9:17:20"}
|
| 176 |
+
{"current_steps": 1760, "total_steps": 3886, "loss": 0.0144, "lr": 1.333517506894448e-05, "epoch": 0.905932312443701, "percentage": 45.29, "elapsed_time": "1 day, 3:25:34", "remaining_time": "1 day, 9:07:46"}
|
| 177 |
+
{"current_steps": 1770, "total_steps": 3886, "loss": 0.0141, "lr": 1.3250348534702063e-05, "epoch": 0.9110796551280401, "percentage": 45.55, "elapsed_time": "1 day, 3:34:35", "remaining_time": "1 day, 8:58:02"}
|
| 178 |
+
{"current_steps": 1780, "total_steps": 3886, "loss": 0.0141, "lr": 1.316525967798976e-05, "epoch": 0.9162269978123794, "percentage": 45.81, "elapsed_time": "1 day, 3:43:41", "remaining_time": "1 day, 8:48:23"}
|
| 179 |
+
{"current_steps": 1790, "total_steps": 3886, "loss": 0.0146, "lr": 1.307991536598469e-05, "epoch": 0.9213743404967185, "percentage": 46.06, "elapsed_time": "1 day, 3:52:56", "remaining_time": "1 day, 8:38:56"}
|
| 180 |
+
{"current_steps": 1800, "total_steps": 3886, "loss": 0.0137, "lr": 1.2994322486480716e-05, "epoch": 0.9265216831810578, "percentage": 46.32, "elapsed_time": "1 day, 4:02:15", "remaining_time": "1 day, 8:29:32"}
|