Text Generation
Transformers
Safetensors
llama
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use AlignmentLab-AI/teensyorca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlignmentLab-AI/teensyorca with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlignmentLab-AI/teensyorca") 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("AlignmentLab-AI/teensyorca") model = AutoModelForCausalLM.from_pretrained("AlignmentLab-AI/teensyorca", 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
- vLLM
How to use AlignmentLab-AI/teensyorca with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlignmentLab-AI/teensyorca" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlignmentLab-AI/teensyorca", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AlignmentLab-AI/teensyorca
- SGLang
How to use AlignmentLab-AI/teensyorca 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 "AlignmentLab-AI/teensyorca" \ --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": "AlignmentLab-AI/teensyorca", "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 "AlignmentLab-AI/teensyorca" \ --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": "AlignmentLab-AI/teensyorca", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AlignmentLab-AI/teensyorca with Docker Model Runner:
docker model run hf.co/AlignmentLab-AI/teensyorca
Commit History
-
Upload 3 files
Verified signature70dfb55 -
Update config.json
Verified signature766f49d -
Update config.json
Verified signature8fef9f8 -
Update config.json
Verified signaturec57f440 -
Update config.json
Verified signature47b8496 -
Update config.json
Verified signaturee0e5042 -
Update config.json
Verified signaturedc8a80c -
Update config.json
Verified signature34012c9 -
Update config.json
Verified signaturee31049b -
Update config.json
Verified signaturee30c892 -
Update config.json
Verified signature95814ca -
Update config.json
Verified signaturefdadc2c -
Update config.json
Verified signature0bdae88
-
Upload tokenizer.model
Verified signature8f881cf
-
Update generation_config.json
4b45ef4 -
Update config.json
b120c04
-
Upload tokenizer
39782eb -
Upload LlamaForCausalLM
3f8e529 -
Update config.json
bc22c13 -
Update generation_config.json
ca1c0e3 -
Update config.json
5608f19 -
Update config.json
6a6a931 -
Update generation_config.json
2ba7cad -
Upload tokenizer
81bbfad -
Upload LlamaForCausalLM
f388cdb -
Upload LlamaForCausalLM
3594387 -
Update generation_config.json
c41d4a3 -
Update config.json
12ecf9a -
Upload LlamaForCausalLM
e5b12cf -
initial commit
43c4b5d