Instructions to use Finisha-F-scratch/Pikyname with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Finisha-F-scratch/Pikyname with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Finisha-F-scratch/Pikyname")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Finisha-F-scratch/Pikyname") model = AutoModelForCausalLM.from_pretrained("Finisha-F-scratch/Pikyname", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Finisha-F-scratch/Pikyname with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Finisha-F-scratch/Pikyname" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Finisha-F-scratch/Pikyname", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Finisha-F-scratch/Pikyname
- SGLang
How to use Finisha-F-scratch/Pikyname 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 "Finisha-F-scratch/Pikyname" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Finisha-F-scratch/Pikyname", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Finisha-F-scratch/Pikyname" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Finisha-F-scratch/Pikyname", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Finisha-F-scratch/Pikyname with Docker Model Runner:
docker model run hf.co/Finisha-F-scratch/Pikyname
Premier modèle d'architecture gemma from scratch
Browse files- tokenizer.json +4 -4
- tokenizer_config.json +2 -2
tokenizer.json
CHANGED
|
@@ -64,7 +64,7 @@
|
|
| 64 |
},
|
| 65 |
{
|
| 66 |
"id": 5,
|
| 67 |
-
"content": "
|
| 68 |
"single_word": false,
|
| 69 |
"lstrip": false,
|
| 70 |
"rstrip": false,
|
|
@@ -73,7 +73,7 @@
|
|
| 73 |
},
|
| 74 |
{
|
| 75 |
"id": 6,
|
| 76 |
-
"content": "
|
| 77 |
"single_word": false,
|
| 78 |
"lstrip": false,
|
| 79 |
"rstrip": false,
|
|
@@ -148,8 +148,8 @@
|
|
| 148 |
"<s>": 2,
|
| 149 |
"<unk>": 3,
|
| 150 |
"<mask>": 4,
|
| 151 |
-
"
|
| 152 |
-
"
|
| 153 |
"e": 7,
|
| 154 |
"C": 8,
|
| 155 |
"r": 9,
|
|
|
|
| 64 |
},
|
| 65 |
{
|
| 66 |
"id": 5,
|
| 67 |
+
"content": "Ever:",
|
| 68 |
"single_word": false,
|
| 69 |
"lstrip": false,
|
| 70 |
"rstrip": false,
|
|
|
|
| 73 |
},
|
| 74 |
{
|
| 75 |
"id": 6,
|
| 76 |
+
"content": "Small:",
|
| 77 |
"single_word": false,
|
| 78 |
"lstrip": false,
|
| 79 |
"rstrip": false,
|
|
|
|
| 148 |
"<s>": 2,
|
| 149 |
"<unk>": 3,
|
| 150 |
"<mask>": 4,
|
| 151 |
+
"Ever:": 5,
|
| 152 |
+
"Small:": 6,
|
| 153 |
"e": 7,
|
| 154 |
"C": 8,
|
| 155 |
"r": 9,
|
tokenizer_config.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
| 7 |
"</s>",
|
| 8 |
"<s>",
|
| 9 |
"<mask>",
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
],
|
| 13 |
"is_local": true,
|
| 14 |
"mask_token": "<mask>",
|
|
|
|
| 7 |
"</s>",
|
| 8 |
"<s>",
|
| 9 |
"<mask>",
|
| 10 |
+
"Ever:",
|
| 11 |
+
"Small:"
|
| 12 |
],
|
| 13 |
"is_local": true,
|
| 14 |
"mask_token": "<mask>",
|