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 3100
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:c36b8ba94ee82d4678ee9aec8ef8f323acf692fe6af023a33ec58212f7ec9289
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -18,3 +18,13 @@
|
|
| 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"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"}
|
| 21 |
+
{"current_steps": 3010, "total_steps": 3886, "loss": 0.0105, "lr": 2.946422905766103e-06, "epoch": 1.5492214644189937, "percentage": 77.46, "elapsed_time": "3:17:15", "remaining_time": "0:57:24"}
|
| 22 |
+
{"current_steps": 3020, "total_steps": 3886, "loss": 0.0105, "lr": 2.8830274463030705e-06, "epoch": 1.5543688071033328, "percentage": 77.71, "elapsed_time": "3:26:27", "remaining_time": "0:59:12"}
|
| 23 |
+
{"current_steps": 3030, "total_steps": 3886, "loss": 0.0104, "lr": 2.820206368878894e-06, "epoch": 1.5595161497876722, "percentage": 77.97, "elapsed_time": "3:35:24", "remaining_time": "1:00:51"}
|
| 24 |
+
{"current_steps": 3040, "total_steps": 3886, "loss": 0.0106, "lr": 2.7579647435283773e-06, "epoch": 1.5646634924720113, "percentage": 78.23, "elapsed_time": "3:44:32", "remaining_time": "1:02:29"}
|
| 25 |
+
{"current_steps": 3050, "total_steps": 3886, "loss": 0.0107, "lr": 2.696307593521088e-06, "epoch": 1.5698108351563507, "percentage": 78.49, "elapsed_time": "3:53:47", "remaining_time": "1:04:04"}
|
| 26 |
+
{"current_steps": 3060, "total_steps": 3886, "loss": 0.0111, "lr": 2.6352398949559697e-06, "epoch": 1.5749581778406898, "percentage": 78.74, "elapsed_time": "4:03:05", "remaining_time": "1:05:37"}
|
| 27 |
+
{"current_steps": 3070, "total_steps": 3886, "loss": 0.0106, "lr": 2.5747665763597016e-06, "epoch": 1.580105520525029, "percentage": 79.0, "elapsed_time": "4:12:09", "remaining_time": "1:07:01"}
|
| 28 |
+
{"current_steps": 3080, "total_steps": 3886, "loss": 0.0097, "lr": 2.514892518288988e-06, "epoch": 1.585252863209368, "percentage": 79.26, "elapsed_time": "4:21:22", "remaining_time": "1:08:23"}
|
| 29 |
+
{"current_steps": 3090, "total_steps": 3886, "loss": 0.0099, "lr": 2.4556225529366316e-06, "epoch": 1.5904002058937072, "percentage": 79.52, "elapsed_time": "4:30:39", "remaining_time": "1:09:43"}
|
| 30 |
+
{"current_steps": 3100, "total_steps": 3886, "loss": 0.0107, "lr": 2.3969614637415474e-06, "epoch": 1.5955475485780466, "percentage": 79.77, "elapsed_time": "4:39:44", "remaining_time": "1:10:55"}
|