Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
sft
trl
conversational
text-generation-inference
Instructions to use Ignaciohhhhggfgjfrffd/Xfgs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ignaciohhhhggfgjfrffd/Xfgs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ignaciohhhhggfgjfrffd/Xfgs") 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("Ignaciohhhhggfgjfrffd/Xfgs") model = AutoModelForCausalLM.from_pretrained("Ignaciohhhhggfgjfrffd/Xfgs", 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 Ignaciohhhhggfgjfrffd/Xfgs with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ignaciohhhhggfgjfrffd/Xfgs" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ignaciohhhhggfgjfrffd/Xfgs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ignaciohhhhggfgjfrffd/Xfgs
- SGLang
How to use Ignaciohhhhggfgjfrffd/Xfgs 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 "Ignaciohhhhggfgjfrffd/Xfgs" \ --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": "Ignaciohhhhggfgjfrffd/Xfgs", "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 "Ignaciohhhhggfgjfrffd/Xfgs" \ --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": "Ignaciohhhhggfgjfrffd/Xfgs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ignaciohhhhggfgjfrffd/Xfgs with Docker Model Runner:
docker model run hf.co/Ignaciohhhhggfgjfrffd/Xfgs
Download tokenizer.json from Ignaciohhhhggfgjfrffd/Xfgs: direct link, hf CLI and curl.
- Browser
- Download file 5.49 kB
-
https://huggingface.co/Ignaciohhhhggfgjfrffd/Xfgs/resolve/main/tokenizer.json
- Command line
-
hf download hf://Ignaciohhhhggfgjfrffd/Xfgs/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/Ignaciohhhhggfgjfrffd/Xfgs/resolve/main/tokenizer.json
5.49 kB
| { | |
| "version": "1.0", | |
| "truncation": null, | |
| "padding": null, | |
| "added_tokens": [ | |
| { | |
| "id": 0, | |
| "content": "<unk>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 1, | |
| "content": "<s>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 2, | |
| "content": "</s>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 3, | |
| "content": "<pad>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 88, | |
| "content": "<|im_start|>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 89, | |
| "content": "<|im_end|>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 90, | |
| "content": "<|system|>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 91, | |
| "content": "<|user|>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 92, | |
| "content": "<|assistant|>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 93, | |
| "content": "<|tool|>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 94, | |
| "content": "<|assistant_reasoning|>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 95, | |
| "content": "<|assistant_reasoning_end|>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| } | |
| ], | |
| "normalizer": { | |
| "type": "Sequence", | |
| "normalizers": [ | |
| { | |
| "type": "Prepend", | |
| "prepend": "▁" | |
| }, | |
| { | |
| "type": "Replace", | |
| "pattern": { | |
| "String": " " | |
| }, | |
| "content": "▁" | |
| } | |
| ] | |
| }, | |
| "pre_tokenizer": null, | |
| "post_processor": { | |
| "type": "TemplateProcessing", | |
| "single": [ | |
| { | |
| "SpecialToken": { | |
| "id": "<s>", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "Sequence": { | |
| "id": "A", | |
| "type_id": 0 | |
| } | |
| } | |
| ], | |
| "pair": [ | |
| { | |
| "SpecialToken": { | |
| "id": "<s>", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "Sequence": { | |
| "id": "A", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "SpecialToken": { | |
| "id": "<s>", | |
| "type_id": 1 | |
| } | |
| }, | |
| { | |
| "Sequence": { | |
| "id": "B", | |
| "type_id": 1 | |
| } | |
| } | |
| ], | |
| "special_tokens": { | |
| "<s>": { | |
| "id": "<s>", | |
| "ids": [ | |
| 1 | |
| ], | |
| "tokens": [ | |
| "<s>" | |
| ] | |
| } | |
| } | |
| }, | |
| "decoder": { | |
| "type": "Sequence", | |
| "decoders": [ | |
| { | |
| "type": "Replace", | |
| "pattern": { | |
| "String": "▁" | |
| }, | |
| "content": " " | |
| }, | |
| { | |
| "type": "ByteFallback" | |
| }, | |
| { | |
| "type": "Fuse" | |
| }, | |
| { | |
| "type": "Strip", | |
| "content": " ", | |
| "start": 1, | |
| "stop": 0 | |
| } | |
| ] | |
| }, | |
| "model": { | |
| "type": "BPE", | |
| "dropout": null, | |
| "unk_token": "<unk>", | |
| "continuing_subword_prefix": null, | |
| "end_of_word_suffix": null, | |
| "fuse_unk": true, | |
| "byte_fallback": true, | |
| "ignore_merges": false, | |
| "vocab": { | |
| "<unk>": 0, | |
| "<s>": 1, | |
| "</s>": 2, | |
| "<pad>": 3, | |
| "st": 4, | |
| "en": 5, | |
| "▁": 6, | |
| "a": 7, | |
| "i": 8, | |
| "e": 9, | |
| "t": 10, | |
| "s": 11, | |
| "n": 12, | |
| "r": 13, | |
| "l": 14, | |
| "o": 15, | |
| "u": 16, | |
| "m": 17, | |
| "k": 18, | |
| "d": 19, | |
| "|": 20, | |
| "p": 21, | |
| "v": 22, | |
| "g": 23, | |
| ".": 24, | |
| "=": 25, | |
| "[": 26, | |
| "]": 27, | |
| "1": 28, | |
| "_": 29, | |
| "h": 30, | |
| "0": 31, | |
| "j": 32, | |
| "2": 33, | |
| "-": 34, | |
| "/": 35, | |
| "3": 36, | |
| "q": 37, | |
| "'": 38, | |
| "c": 39, | |
| "4": 40, | |
| ":": 41, | |
| "<": 42, | |
| ">": 43, | |
| "K": 44, | |
| "5": 45, | |
| "w": 46, | |
| "V": 47, | |
| "f": 48, | |
| "b": 49, | |
| "6": 50, | |
| "7": 51, | |
| "9": 52, | |
| "E": 53, | |
| ",": 54, | |
| "%": 55, | |
| "T": 56, | |
| "8": 57, | |
| "#": 58, | |
| "S": 59, | |
| "C": 60, | |
| "M": 61, | |
| "P": 62, | |
| "A": 63, | |
| "B": 64, | |
| "\"": 65, | |
| "}": 66, | |
| "x": 67, | |
| ")": 68, | |
| "{": 69, | |
| "(": 70, | |
| "R": 71, | |
| "*": 72, | |
| "H": 73, | |
| "F": 74, | |
| "Z": 75, | |
| "y": 76, | |
| "G": 77, | |
| "N": 78, | |
| "I": 79, | |
| "J": 80, | |
| "Q": 81, | |
| "L": 82, | |
| "\\": 83, | |
| "O": 84, | |
| ";": 85, | |
| "D": 86, | |
| "Y": 87 | |
| }, | |
| "merges": [ | |
| [ | |
| "s", | |
| "t" | |
| ], | |
| [ | |
| "e", | |
| "n" | |
| ] | |
| ] | |
| } | |
| } |