Instructions to use burgerbee/teacherllama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use burgerbee/teacherllama with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="burgerbee/teacherllama", filename="teacherllama_0.1.F16.gguf", )
llm.create_chat_completion( messages = "{\n \"question\": \"What is my name?\",\n \"context\": \"My name is Clara and I live in Berkeley.\"\n}" ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use burgerbee/teacherllama with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf burgerbee/teacherllama:F16 # Run inference directly in the terminal: llama-cli -hf burgerbee/teacherllama:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf burgerbee/teacherllama:F16 # Run inference directly in the terminal: llama-cli -hf burgerbee/teacherllama:F16
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 burgerbee/teacherllama:F16 # Run inference directly in the terminal: ./llama-cli -hf burgerbee/teacherllama:F16
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 burgerbee/teacherllama:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf burgerbee/teacherllama:F16
Use Docker
docker model run hf.co/burgerbee/teacherllama:F16
- LM Studio
- Jan
- Ollama
How to use burgerbee/teacherllama with Ollama:
ollama run hf.co/burgerbee/teacherllama:F16
- Unsloth Studio new
How to use burgerbee/teacherllama with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for burgerbee/teacherllama to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for burgerbee/teacherllama to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for burgerbee/teacherllama to start chatting
- Docker Model Runner
How to use burgerbee/teacherllama with Docker Model Runner:
docker model run hf.co/burgerbee/teacherllama:F16
- Lemonade
How to use burgerbee/teacherllama with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull burgerbee/teacherllama:F16
Run and chat with the model
lemonade run user.teacherllama-F16
List all available models
lemonade list
Teacherllama: Llama-3.1-8B-Instruct fine-tune for teaching
This model will not just answer your questions. It will reply in a textbook style with study questions, key terms, etc.
Demo: https://www.youtube.com/watch?v=I5fIxWHb9SI
Example of output format
Neurotransmitters: Chemicals that Influence Mood and Behavior
Neurotransmitters are chemicals produced by the brain that transmit signals to other cells. They play a crucial role in regulating mood, appetite, and other functions. There are several types of neurotransmitters, including:
- Acetylcholine: Involved in muscle movement and memory
- Dopamine: Associated with pleasure and reward
- Endorphins: Natural painkillers that also influence mood
- GABA: An inhibitory neurotransmitter that helps calm the brain
- Glutamate: An excitatory neurotransmitter that stimulates the brain
- Histamine: Involved in alertness and arousal
- Norepinephrine: Associated with stress and anxiety
- Serotonin: Regulates mood, appetite, and sleep
How Neurotransmitters Work
Neurotransmitters are released by neurons and bind to receptors on nearby cells. This binding triggers a response that can influence various functions, such as:
- Mood: Neurotransmitters like serotonin and dopamine can affect mood and emotions.
- Appetite: Neurotransmitters like leptin and ghrelin regulate hunger and fullness.
- Sleep: Neurotransmitters like melatonin and adenosine influence sleep-wake cycles.
- Movement: Neurotransmitters like acetylcholine and dopamine are involved in muscle movement and coordination.
Imbalances of Neurotransmitters
Imbalances of neurotransmitters can lead to various mental health conditions, such as:
- Depression: Low levels of neurotransmitters like serotonin and dopamine may contribute to depression.
- Anxiety: Overactive neurotransmitters like norepinephrine and serotonin can lead to anxiety.
- ADHD: Imbalances of neurotransmitters like dopamine and norepinephrine may be involved in attention deficit hyperactivity disorder.
Study Questions
- What are neurotransmitters, and what is their role in regulating mood and behavior?
- How do neurotransmitters work, and what are some examples of their functions in the body?
- What are some mental health conditions that may be associated with imbalances of neurotransmitters?
- How can neurotransmitters be influenced by factors such as diet, exercise, and stress?
- What are some potential treatments for imbalances of neurotransmitters, and how do they work?
Key Terms
- Neurotransmitters: Chemicals produced by the brain that transmit signals to other cells.
- Receptors: Proteins on the surface of cells that bind to neurotransmitters.
- Synapses: Gaps between neurons where neurotransmitters are released and bind to receptors.
- Neuroplasticity: The brain's ability to adapt and change in response to experience and environment.
Chat template
{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|start_header_id|>user<|end_header_id|> ' + message['content'] | trim + '<|eot_id|>' }}{% elif message['role'] == 'assistant' %}{{ '<|start_header_id|>assistant<|end_header_id|> ' + message['content'] | trim + '<|eot_id|>' }}{% else %}{{ '<|start_header_id|>' + message['role'] + '<|end_header_id|> ' + message['content'] | trim + '<|eot_id|>' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|> ' }}{% endif %}
Training Data
Private / undisclosed dataset.
- Downloads last month
- 46
4-bit
16-bit
Model tree for burgerbee/teacherllama
Base model
meta-llama/Llama-3.1-8B