Text Generation
Transformers
Safetensors
qwen2
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use adpretko/ml815-model6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adpretko/ml815-model6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adpretko/ml815-model6") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("adpretko/ml815-model6") model = AutoModelForCausalLM.from_pretrained("adpretko/ml815-model6") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use adpretko/ml815-model6 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adpretko/ml815-model6" # 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/ml815-model6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adpretko/ml815-model6
- SGLang
How to use adpretko/ml815-model6 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/ml815-model6" \ --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/ml815-model6", "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/ml815-model6" \ --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/ml815-model6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adpretko/ml815-model6 with Docker Model Runner:
docker model run hf.co/adpretko/ml815-model6
Training in progress, step 309
Browse files- model.safetensors +1 -1
- trainer_log.jsonl +1 -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:9e4fb1c93a18f39557be74ea01d13afe91baed8bfc7f22846ba46817ed42318c
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -28,3 +28,4 @@
|
|
| 28 |
{"current_steps": 280, "total_steps": 309, "loss": 0.0376, "lr": 5.691923259479093e-07, "epoch": 0.9061488673139159, "percentage": 90.61, "elapsed_time": "0:31:04", "remaining_time": "0:03:13"}
|
| 29 |
{"current_steps": 290, "total_steps": 309, "loss": 0.0383, "lr": 2.5432592503288e-07, "epoch": 0.9385113268608414, "percentage": 93.85, "elapsed_time": "0:32:13", "remaining_time": "0:02:06"}
|
| 30 |
{"current_steps": 300, "total_steps": 309, "loss": 0.041, "lr": 6.378490697611761e-08, "epoch": 0.970873786407767, "percentage": 97.09, "elapsed_time": "0:33:20", "remaining_time": "0:01:00"}
|
|
|
|
|
|
| 28 |
{"current_steps": 280, "total_steps": 309, "loss": 0.0376, "lr": 5.691923259479093e-07, "epoch": 0.9061488673139159, "percentage": 90.61, "elapsed_time": "0:31:04", "remaining_time": "0:03:13"}
|
| 29 |
{"current_steps": 290, "total_steps": 309, "loss": 0.0383, "lr": 2.5432592503288e-07, "epoch": 0.9385113268608414, "percentage": 93.85, "elapsed_time": "0:32:13", "remaining_time": "0:02:06"}
|
| 30 |
{"current_steps": 300, "total_steps": 309, "loss": 0.041, "lr": 6.378490697611761e-08, "epoch": 0.970873786407767, "percentage": 97.09, "elapsed_time": "0:33:20", "remaining_time": "0:01:00"}
|
| 31 |
+
{"current_steps": 309, "total_steps": 309, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "0:35:27", "remaining_time": "0:00:00"}
|