NA94/clarky_alpaca
Viewer • Updated • 303 • 6
How to use NA94/Clarky with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="NA94/Clarky") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("NA94/Clarky")
model = AutoModelForCausalLM.from_pretrained("NA94/Clarky")How to use NA94/Clarky with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "NA94/Clarky"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "NA94/Clarky",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/NA94/Clarky
How to use NA94/Clarky with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "NA94/Clarky" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "NA94/Clarky",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "NA94/Clarky" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "NA94/Clarky",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use NA94/Clarky with Docker Model Runner:
docker model run hf.co/NA94/Clarky
axolotl version: 0.8.0.dev0
base_model: NousResearch/Meta-Llama-3.1-8B
# Model loading settings
load_in_8bit: false
load_in_4bit: false
strict: false
# Dataset configuration
datasets:
- path: NA94/clarky_alpaca
type: alpaca
dataset_prepared_path: last_run_prepared
val_set_size: 0.05
output_dir: ./outputs/out
# Training parameters
sequence_len: 8192
sample_packing: true
pad_to_sequence_len: true
# Weights & Biases logging (optional)
wandb_project:
wandb_entity:
wandb_watch:
wandb_name:
wandb_log_model:
# Training optimization
gradient_accumulation_steps: 8
micro_batch_size: 2
max_steps: 100
warmup_steps: 5
eval_steps: 10
logging_steps: 5
optimizer: paged_adamw_8bit
lr_scheduler: cosine
learning_rate: 5e-5
# Additional settings
train_on_inputs: false
group_by_length: false
bf16: auto
fp16:
tf32: false
gradient_checkpointing: true
gradient_checkpointing_kwargs:
use_reentrant: false
#early_stopping_patience:
resume_from_checkpoint:
#logging_steps: 1
#xformers_attention:
flash_attention: true
eval_sample_packing: false
#evals_per_epoch: 2
#eval_table_size:
#saves_per_epoch: 1
#debug:
#deepspeed:
weight_decay: 0.0
#fsdp:
#fsdp_config:
special_tokens:
pad_token: <|end_of_text|>
This model is a fine-tuned version of NousResearch/Meta-Llama-3.1-8B on the NA94/clarky_alpaca dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 1.0 | 1 | 3.8304 |