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 3000
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:47fdae6c167e259afeaef536161f2d053986677f03f6624ef4848edbcd3d06bd
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -8,3 +8,13 @@
|
|
| 8 |
{"current_steps": 2880, "total_steps": 3886, "loss": 0.0113, "lr": 3.820443243430555e-06, "epoch": 1.482306009522584, "percentage": 74.11, "elapsed_time": "1:14:19", "remaining_time": "0:25:57"}
|
| 9 |
{"current_steps": 2890, "total_steps": 3886, "loss": 0.0113, "lr": 3.750062708026814e-06, "epoch": 1.487453352206923, "percentage": 74.37, "elapsed_time": "1:23:51", "remaining_time": "0:28:53"}
|
| 10 |
{"current_steps": 2900, "total_steps": 3886, "loss": 0.0106, "lr": 3.680186579756507e-06, "epoch": 1.4926006948912625, "percentage": 74.63, "elapsed_time": "1:32:56", "remaining_time": "0:31:36"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
{"current_steps": 2880, "total_steps": 3886, "loss": 0.0113, "lr": 3.820443243430555e-06, "epoch": 1.482306009522584, "percentage": 74.11, "elapsed_time": "1:14:19", "remaining_time": "0:25:57"}
|
| 9 |
{"current_steps": 2890, "total_steps": 3886, "loss": 0.0113, "lr": 3.750062708026814e-06, "epoch": 1.487453352206923, "percentage": 74.37, "elapsed_time": "1:23:51", "remaining_time": "0:28:53"}
|
| 10 |
{"current_steps": 2900, "total_steps": 3886, "loss": 0.0106, "lr": 3.680186579756507e-06, "epoch": 1.4926006948912625, "percentage": 74.63, "elapsed_time": "1:32:56", "remaining_time": "0:31:36"}
|
| 11 |
+
{"current_steps": 2910, "total_steps": 3886, "loss": 0.0102, "lr": 3.6108204980390116e-06, "epoch": 1.4977480375756016, "percentage": 74.88, "elapsed_time": "1:43:43", "remaining_time": "0:34:47"}
|
| 12 |
+
{"current_steps": 2920, "total_steps": 3886, "loss": 0.0108, "lr": 3.5419700611299356e-06, "epoch": 1.502895380259941, "percentage": 75.14, "elapsed_time": "1:52:57", "remaining_time": "0:37:22"}
|
| 13 |
+
{"current_steps": 2930, "total_steps": 3886, "loss": 0.0105, "lr": 3.4736408256692757e-06, "epoch": 1.50804272294428, "percentage": 75.4, "elapsed_time": "2:02:05", "remaining_time": "0:39:50"}
|
| 14 |
+
{"current_steps": 2940, "total_steps": 3886, "loss": 0.0107, "lr": 3.4058383062329534e-06, "epoch": 1.5131900656286192, "percentage": 75.66, "elapsed_time": "2:11:09", "remaining_time": "0:42:12"}
|
| 15 |
+
{"current_steps": 2950, "total_steps": 3886, "loss": 0.0106, "lr": 3.3385679748877996e-06, "epoch": 1.5183374083129584, "percentage": 75.91, "elapsed_time": "2:20:27", "remaining_time": "0:44:33"}
|
| 16 |
+
{"current_steps": 2960, "total_steps": 3886, "loss": 0.0101, "lr": 3.2718352607498814e-06, "epoch": 1.5234847509972975, "percentage": 76.17, "elapsed_time": "2:29:27", "remaining_time": "0:46:45"}
|
| 17 |
+
{"current_steps": 2970, "total_steps": 3886, "loss": 0.0101, "lr": 3.205645549546361e-06, "epoch": 1.5286320936816369, "percentage": 76.43, "elapsed_time": "2:38:40", "remaining_time": "0:48:56"}
|
| 18 |
+
{"current_steps": 2980, "total_steps": 3886, "loss": 0.0103, "lr": 3.140004183180837e-06, "epoch": 1.533779436365976, "percentage": 76.69, "elapsed_time": "2:47:53", "remaining_time": "0:51:02"}
|
| 19 |
+
{"current_steps": 2990, "total_steps": 3886, "loss": 0.0105, "lr": 3.074916459302211e-06, "epoch": 1.5389267790503154, "percentage": 76.94, "elapsed_time": "2:57:05", "remaining_time": "0:53:04"}
|
| 20 |
+
{"current_steps": 3000, "total_steps": 3886, "loss": 0.0109, "lr": 3.010387630877142e-06, "epoch": 1.5440741217346545, "percentage": 77.2, "elapsed_time": "3:06:20", "remaining_time": "0:55:02"}
|