Text Generation
Transformers
Safetensors
llama
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use mlfoundations-dev/stackexchange_devops with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlfoundations-dev/stackexchange_devops with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mlfoundations-dev/stackexchange_devops") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mlfoundations-dev/stackexchange_devops") model = AutoModelForCausalLM.from_pretrained("mlfoundations-dev/stackexchange_devops") 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
- vLLM
How to use mlfoundations-dev/stackexchange_devops with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mlfoundations-dev/stackexchange_devops" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlfoundations-dev/stackexchange_devops", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mlfoundations-dev/stackexchange_devops
- SGLang
How to use mlfoundations-dev/stackexchange_devops 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 "mlfoundations-dev/stackexchange_devops" \ --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": "mlfoundations-dev/stackexchange_devops", "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 "mlfoundations-dev/stackexchange_devops" \ --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": "mlfoundations-dev/stackexchange_devops", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mlfoundations-dev/stackexchange_devops with Docker Model Runner:
docker model run hf.co/mlfoundations-dev/stackexchange_devops
Training in progress, epoch 2
Browse files
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4976698672
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d978edb77fc5b8eedc2ee6e0691bca2ec2c217031d980e6710232041e5e376dd
|
| 3 |
size 4976698672
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999802720
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a413638e95b809c4b0bfc50ba28ab331125c75098cd912b123604e883c44ad0b
|
| 3 |
size 4999802720
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4915916176
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49209cb3ad0a9b1b6f1203b47a61e0c116e6152c3aea86eda0a999c39ff670ba
|
| 3 |
size 4915916176
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1168138808
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48fc9b80022aeaca5f669bc033dfedf78c94df141de1351810a8c8039423a80f
|
| 3 |
size 1168138808
|
trainer_log.jsonl
CHANGED
|
@@ -2,3 +2,6 @@
|
|
| 2 |
{"current_steps": 11, "total_steps": 33, "eval_loss": 0.9338513612747192, "epoch": 0.9887640449438202, "percentage": 33.33, "elapsed_time": "0:10:56", "remaining_time": "0:21:52"}
|
| 3 |
{"current_steps": 20, "total_steps": 33, "loss": 0.9997, "lr": 5e-06, "epoch": 1.797752808988764, "percentage": 60.61, "elapsed_time": "0:20:34", "remaining_time": "0:13:22"}
|
| 4 |
{"current_steps": 22, "total_steps": 33, "eval_loss": 0.8875383138656616, "epoch": 1.9775280898876404, "percentage": 66.67, "elapsed_time": "0:22:53", "remaining_time": "0:11:26"}
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
{"current_steps": 11, "total_steps": 33, "eval_loss": 0.9338513612747192, "epoch": 0.9887640449438202, "percentage": 33.33, "elapsed_time": "0:10:56", "remaining_time": "0:21:52"}
|
| 3 |
{"current_steps": 20, "total_steps": 33, "loss": 0.9997, "lr": 5e-06, "epoch": 1.797752808988764, "percentage": 60.61, "elapsed_time": "0:20:34", "remaining_time": "0:13:22"}
|
| 4 |
{"current_steps": 22, "total_steps": 33, "eval_loss": 0.8875383138656616, "epoch": 1.9775280898876404, "percentage": 66.67, "elapsed_time": "0:22:53", "remaining_time": "0:11:26"}
|
| 5 |
+
{"current_steps": 30, "total_steps": 33, "loss": 0.9271, "lr": 5e-06, "epoch": 2.696629213483146, "percentage": 90.91, "elapsed_time": "0:31:33", "remaining_time": "0:03:09"}
|
| 6 |
+
{"current_steps": 33, "total_steps": 33, "eval_loss": 0.8657615780830383, "epoch": 2.966292134831461, "percentage": 100.0, "elapsed_time": "0:35:52", "remaining_time": "0:00:00"}
|
| 7 |
+
{"current_steps": 33, "total_steps": 33, "epoch": 2.966292134831461, "percentage": 100.0, "elapsed_time": "0:37:07", "remaining_time": "0:00:00"}
|