Text Generation
Transformers
Safetensors
PyTorch
llama
facebook
meta
llama-3
conversational
text-generation-inference
Instructions to use Guilherme34/sadtest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Guilherme34/sadtest with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Guilherme34/sadtest") 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("Guilherme34/sadtest") model = AutoModelForCausalLM.from_pretrained("Guilherme34/sadtest", 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Guilherme34/sadtest with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Guilherme34/sadtest" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Guilherme34/sadtest", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Guilherme34/sadtest
- SGLang
How to use Guilherme34/sadtest 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 "Guilherme34/sadtest" \ --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": "Guilherme34/sadtest", "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 "Guilherme34/sadtest" \ --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": "Guilherme34/sadtest", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Guilherme34/sadtest with Docker Model Runner:
docker model run hf.co/Guilherme34/sadtest
Commit History
-
Upload model-00002-of-00002.safetensors with huggingface_hub
Verified signature75ca622 -
Upload model-00001-of-00002.safetensors with huggingface_hub
Verified signature4f382b1 -
Upload tokenizer_config.json with huggingface_hub
Verified signature4c298eb -
Upload tokenizer.json with huggingface_hub
Verified signature3c0a2fe -
Upload special_tokens_map.json with huggingface_hub
Verified signatureecbaa93 -
Upload original/tokenizer.model with huggingface_hub
Verified signature74889ee -
Upload original/params.json with huggingface_hub
Verified signature7d8d9f8 -
Upload original/orig_params.json with huggingface_hub
Verified signatureccd7a94 -
Upload original/consolidated.00.pth with huggingface_hub
Verified signature1799eb8 -
Upload model.safetensors.index.json with huggingface_hub
Verified signatureff470e0 -
Upload generation_config.json with huggingface_hub
Verified signature3a419f8 -
Upload config.json with huggingface_hub
Verified signature9eeef83 -
Upload USE_POLICY.md with huggingface_hub
Verified signature309111c -
Upload README.md with huggingface_hub
Verified signature04799b4 -
Upload LICENSE.txt with huggingface_hub
Verified signatured007346 -
initial commit
Verified signature2f0da0d