Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
llama
Generated from Trainer
axolotl
dpo
trl
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a") 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("Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a") model = AutoModelForCausalLM.from_pretrained("Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a", 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 Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a
- SGLang
How to use Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a 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 "Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a" \ --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": "Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a", "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 "Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a" \ --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": "Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a with Docker Model Runner:
docker model run hf.co/Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a
Download training_args.bin from Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a: direct link, hf CLI and curl.
- Browser
- Download file 7.16 kB
-
https://huggingface.co/Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a/resolve/main/training_args.bin
- Command line
-
hf download hf://Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/Alphatao/02cd5e37-b293-4ea3-b2c2-536d7fd77b2a/resolve/main/training_args.bin
7.16 kB
- Xet hash:
- 52e2f31fd5e68bab4570bea37bfe806ed5733169658c87437bbf488dbe37bcc7
- Size of remote file:
- 7.16 kB
- SHA256:
- 5c13b4998a442b3f5c514e1839f06ac02922813af87395f5f97e39ba3dc3cf0d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.