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 2100
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:1826a405cf8efbca462e1e136d2d10ce6a8386a3bdfa2a3bfdb493734bdd8eb1
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -198,3 +198,13 @@
|
|
| 198 |
{"current_steps": 1980, "total_steps": 3886, "loss": 0.0122, "lr": 1.141910633764327e-05, "epoch": 1.0190451679320551, "percentage": 50.95, "elapsed_time": "1 day, 6:50:51", "remaining_time": "1 day, 5:41:40"}
|
| 199 |
{"current_steps": 1990, "total_steps": 3886, "loss": 0.0125, "lr": 1.1330122671225855e-05, "epoch": 1.0241925106163943, "percentage": 51.21, "elapsed_time": "1 day, 6:59:57", "remaining_time": "1 day, 5:32:05"}
|
| 200 |
{"current_steps": 2000, "total_steps": 3886, "loss": 0.0127, "lr": 1.1241031655993188e-05, "epoch": 1.0293398533007334, "percentage": 51.47, "elapsed_time": "1 day, 7:09:14", "remaining_time": "1 day, 5:22:41"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 198 |
{"current_steps": 1980, "total_steps": 3886, "loss": 0.0122, "lr": 1.141910633764327e-05, "epoch": 1.0190451679320551, "percentage": 50.95, "elapsed_time": "1 day, 6:50:51", "remaining_time": "1 day, 5:41:40"}
|
| 199 |
{"current_steps": 1990, "total_steps": 3886, "loss": 0.0125, "lr": 1.1330122671225855e-05, "epoch": 1.0241925106163943, "percentage": 51.21, "elapsed_time": "1 day, 6:59:57", "remaining_time": "1 day, 5:32:05"}
|
| 200 |
{"current_steps": 2000, "total_steps": 3886, "loss": 0.0127, "lr": 1.1241031655993188e-05, "epoch": 1.0293398533007334, "percentage": 51.47, "elapsed_time": "1 day, 7:09:14", "remaining_time": "1 day, 5:22:41"}
|
| 201 |
+
{"current_steps": 2010, "total_steps": 3886, "loss": 0.0126, "lr": 1.1151840482120386e-05, "epoch": 1.0344871959850728, "percentage": 51.72, "elapsed_time": "1 day, 7:20:08", "remaining_time": "1 day, 5:14:47"}
|
| 202 |
+
{"current_steps": 2020, "total_steps": 3886, "loss": 0.0127, "lr": 1.1062556347865967e-05, "epoch": 1.039634538669412, "percentage": 51.98, "elapsed_time": "1 day, 7:29:25", "remaining_time": "1 day, 5:05:22"}
|
| 203 |
+
{"current_steps": 2030, "total_steps": 3886, "loss": 0.0119, "lr": 1.0973186458990902e-05, "epoch": 1.044781881353751, "percentage": 52.24, "elapsed_time": "1 day, 7:38:31", "remaining_time": "1 day, 4:55:47"}
|
| 204 |
+
{"current_steps": 2040, "total_steps": 3886, "loss": 0.0126, "lr": 1.0883738028177069e-05, "epoch": 1.0499292240380904, "percentage": 52.5, "elapsed_time": "1 day, 7:47:49", "remaining_time": "1 day, 4:46:23"}
|
| 205 |
+
{"current_steps": 2050, "total_steps": 3886, "loss": 0.0128, "lr": 1.0794218274445155e-05, "epoch": 1.0550765667224296, "percentage": 52.75, "elapsed_time": "1 day, 7:57:02", "remaining_time": "1 day, 4:36:55"}
|
| 206 |
+
{"current_steps": 2060, "total_steps": 3886, "loss": 0.0127, "lr": 1.0704634422572029e-05, "epoch": 1.0602239094067687, "percentage": 53.01, "elapsed_time": "1 day, 8:06:13", "remaining_time": "1 day, 4:27:25"}
|
| 207 |
+
{"current_steps": 2070, "total_steps": 3886, "loss": 0.0129, "lr": 1.0614993702507649e-05, "epoch": 1.065371252091108, "percentage": 53.27, "elapsed_time": "1 day, 8:15:31", "remaining_time": "1 day, 4:18:01"}
|
| 208 |
+
{"current_steps": 2080, "total_steps": 3886, "loss": 0.012, "lr": 1.0525303348791599e-05, "epoch": 1.0705185947754472, "percentage": 53.53, "elapsed_time": "1 day, 8:24:41", "remaining_time": "1 day, 4:08:31"}
|
| 209 |
+
{"current_steps": 2090, "total_steps": 3886, "loss": 0.0126, "lr": 1.0435570599969168e-05, "epoch": 1.0756659374597863, "percentage": 53.78, "elapsed_time": "1 day, 8:33:54", "remaining_time": "1 day, 3:59:03"}
|
| 210 |
+
{"current_steps": 2100, "total_steps": 3886, "loss": 0.0127, "lr": 1.0345802698007198e-05, "epoch": 1.0808132801441257, "percentage": 54.04, "elapsed_time": "1 day, 8:43:06", "remaining_time": "1 day, 3:49:34"}
|