Instructions to use learn2pro/buddygpt-0.1b-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use learn2pro/buddygpt-0.1b-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="learn2pro/buddygpt-0.1b-chat") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("learn2pro/buddygpt-0.1b-chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use learn2pro/buddygpt-0.1b-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "learn2pro/buddygpt-0.1b-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "learn2pro/buddygpt-0.1b-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/learn2pro/buddygpt-0.1b-chat
- SGLang
How to use learn2pro/buddygpt-0.1b-chat 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 "learn2pro/buddygpt-0.1b-chat" \ --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": "learn2pro/buddygpt-0.1b-chat", "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 "learn2pro/buddygpt-0.1b-chat" \ --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": "learn2pro/buddygpt-0.1b-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use learn2pro/buddygpt-0.1b-chat with Docker Model Runner:
docker model run hf.co/learn2pro/buddygpt-0.1b-chat
Upload folder using huggingface_hub
Browse files- README.md +3 -3
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
model_name: buddygpt-0.1b-chat
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
- trl
|
|
@@ -8,7 +8,7 @@ tags:
|
|
| 8 |
licence: license
|
| 9 |
---
|
| 10 |
|
| 11 |
-
# Model Card for buddygpt-0.1b-chat
|
| 12 |
|
| 13 |
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
| 14 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
@@ -26,7 +26,7 @@ print(output["generated_text"])
|
|
| 26 |
|
| 27 |
## Training procedure
|
| 28 |
|
| 29 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://
|
| 30 |
|
| 31 |
|
| 32 |
This model was trained with SFT.
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
model_name: buddygpt-0.1b-chat-maxode
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
- trl
|
|
|
|
| 8 |
licence: license
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Model Card for buddygpt-0.1b-chat-maxode
|
| 12 |
|
| 13 |
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
| 14 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
|
|
| 26 |
|
| 27 |
## Training procedure
|
| 28 |
|
| 29 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/druidlangde-tencent/huggingface/runs/zlag37e9)
|
| 30 |
|
| 31 |
|
| 32 |
This model was trained with SFT.
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 635908536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa332299e3e02cfb2907823460b597788b812238234d7bddbb2150408e970058
|
| 3 |
size 635908536
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5688
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:466f0437d44f256d1dc05e7947ef0480fc85a028ac1d19fb38f5844994ac6f4b
|
| 3 |
size 5688
|