Text Generation
Transformers
Safetensors
GGUF
mistral
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example") model = AutoModelForCausalLM.from_pretrained("Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example # Run inference directly in the terminal: llama cli -hf Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example # Run inference directly in the terminal: llama cli -hf Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example # Run inference directly in the terminal: ./llama-cli -hf Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example # Run inference directly in the terminal: ./build/bin/llama-cli -hf Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
Use Docker
docker model run hf.co/Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
- LM Studio
- Jan
- vLLM
How to use Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
- SGLang
How to use Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example 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 "Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example" \ --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": "Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example", "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 "Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example" \ --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": "Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example with Ollama:
ollama run hf.co/Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
- Unsloth Desktop
- Docker Model Runner
How to use Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example with Docker Model Runner:
docker model run hf.co/Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
- Lemonade
How to use Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Heralax/llama-Augmentoolkit-Quickstart-Factual-Demo-Example
Run and chat with the model
lemonade run user.llama-Augmentoolkit-Quickstart-Factual-Demo-Example-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Commit History
-
Update README.md
Verified signature23e2a65
-
Update README.md
Verified signature77212c1 -
Update README.md
Verified signaturef7255cf -
Update README.md
Verified signature6e92196
-
Upload test-model-4-sft.gguf
Verified signature8521226 -
Upload rag_data_combined.jsonl
Verified signature3ad2b33 -
Upload 2 files
Verified signature8c5ab9d -
Update README.md
Verified signature4e96205
-
End of training
Verified signature0d8324f -
Training in progress, step 85, checkpoint
Verified signatured7cab4b -
Training in progress, step 85
Verified signatureba3cc6c -
Training in progress, step 68, checkpoint
Verified signature649f901 -
Training in progress, step 68
Verified signature1b38c7b -
Training in progress, step 51, checkpoint
Verified signaturec08cf32 -
Training in progress, step 51
Verified signaturec1357ab -
Training in progress, step 34, checkpoint
Verified signatureba947ed -
Training in progress, step 34
Verified signature3e6ba91 -
Training in progress, step 17, checkpoint
Verified signature928bf77 -
Training in progress, step 17
Verified signature73133c8 -
initial commit
Verified signature37933c6