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 1
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:ee9f3eb53047afe3eb037b7f3af6a84f448f192cae7c5b2c3f95d0d98ab048a5
|
| 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:cf63ca333adaa870de874d2e80328c953e2a732f1b242648b043a60e05aef9b0
|
| 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:00aa7e557e908075afd5ee4a7cb7a4bfd0fd996156d94b7bf1a06e79c1a8a61f
|
| 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:186633b8caa20bfe13e0f258c097ddf169656f1fe23f4d585494fd0923be537c
|
| 3 |
size 1168138808
|
trainer_log.jsonl
CHANGED
|
@@ -1,2 +1,4 @@
|
|
| 1 |
{"current_steps": 10, "total_steps": 33, "loss": 1.0475, "lr": 5e-06, "epoch": 0.898876404494382, "percentage": 30.3, "elapsed_time": "0:09:39", "remaining_time": "0:22:13"}
|
| 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"}
|
|
|
|
|
|
|
|
|
| 1 |
{"current_steps": 10, "total_steps": 33, "loss": 1.0475, "lr": 5e-06, "epoch": 0.898876404494382, "percentage": 30.3, "elapsed_time": "0:09:39", "remaining_time": "0:22:13"}
|
| 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"}
|