Text Generation
PEFT
Safetensors
Transformers
English
llama
lora
dpo
smollm2
trl
conversational
text-generation-inference
Instructions to use Subject-Emu-5259/NeuralAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Subject-Emu-5259/NeuralAI with PEFT:
Base model is not found.
- Transformers
How to use Subject-Emu-5259/NeuralAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Subject-Emu-5259/NeuralAI") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Subject-Emu-5259/NeuralAI") model = AutoModelForCausalLM.from_pretrained("Subject-Emu-5259/NeuralAI", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Subject-Emu-5259/NeuralAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Subject-Emu-5259/NeuralAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Subject-Emu-5259/NeuralAI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Subject-Emu-5259/NeuralAI
- SGLang
How to use Subject-Emu-5259/NeuralAI 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 "Subject-Emu-5259/NeuralAI" \ --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": "Subject-Emu-5259/NeuralAI", "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 "Subject-Emu-5259/NeuralAI" \ --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": "Subject-Emu-5259/NeuralAI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Subject-Emu-5259/NeuralAI with Docker Model Runner:
docker model run hf.co/Subject-Emu-5259/NeuralAI
Sync LoRA adapter: tokenizer_config.json
Browse files- tokenizer_config.json +7 -143
tokenizer_config.json
CHANGED
|
@@ -1,151 +1,15 @@
|
|
| 1 |
{
|
| 2 |
"add_prefix_space": false,
|
| 3 |
-
"
|
| 4 |
-
"0": {
|
| 5 |
-
"content": "<|endoftext|>",
|
| 6 |
-
"lstrip": false,
|
| 7 |
-
"normalized": false,
|
| 8 |
-
"rstrip": false,
|
| 9 |
-
"single_word": false,
|
| 10 |
-
"special": true
|
| 11 |
-
},
|
| 12 |
-
"1": {
|
| 13 |
-
"content": "<|im_start|>",
|
| 14 |
-
"lstrip": false,
|
| 15 |
-
"normalized": false,
|
| 16 |
-
"rstrip": false,
|
| 17 |
-
"single_word": false,
|
| 18 |
-
"special": true
|
| 19 |
-
},
|
| 20 |
-
"2": {
|
| 21 |
-
"content": "<|im_end|>",
|
| 22 |
-
"lstrip": false,
|
| 23 |
-
"normalized": false,
|
| 24 |
-
"rstrip": false,
|
| 25 |
-
"single_word": false,
|
| 26 |
-
"special": true
|
| 27 |
-
},
|
| 28 |
-
"3": {
|
| 29 |
-
"content": "<repo_name>",
|
| 30 |
-
"lstrip": false,
|
| 31 |
-
"normalized": false,
|
| 32 |
-
"rstrip": false,
|
| 33 |
-
"single_word": false,
|
| 34 |
-
"special": true
|
| 35 |
-
},
|
| 36 |
-
"4": {
|
| 37 |
-
"content": "<reponame>",
|
| 38 |
-
"lstrip": false,
|
| 39 |
-
"normalized": false,
|
| 40 |
-
"rstrip": false,
|
| 41 |
-
"single_word": false,
|
| 42 |
-
"special": true
|
| 43 |
-
},
|
| 44 |
-
"5": {
|
| 45 |
-
"content": "<file_sep>",
|
| 46 |
-
"lstrip": false,
|
| 47 |
-
"normalized": false,
|
| 48 |
-
"rstrip": false,
|
| 49 |
-
"single_word": false,
|
| 50 |
-
"special": true
|
| 51 |
-
},
|
| 52 |
-
"6": {
|
| 53 |
-
"content": "<filename>",
|
| 54 |
-
"lstrip": false,
|
| 55 |
-
"normalized": false,
|
| 56 |
-
"rstrip": false,
|
| 57 |
-
"single_word": false,
|
| 58 |
-
"special": true
|
| 59 |
-
},
|
| 60 |
-
"7": {
|
| 61 |
-
"content": "<gh_stars>",
|
| 62 |
-
"lstrip": false,
|
| 63 |
-
"normalized": false,
|
| 64 |
-
"rstrip": false,
|
| 65 |
-
"single_word": false,
|
| 66 |
-
"special": true
|
| 67 |
-
},
|
| 68 |
-
"8": {
|
| 69 |
-
"content": "<issue_start>",
|
| 70 |
-
"lstrip": false,
|
| 71 |
-
"normalized": false,
|
| 72 |
-
"rstrip": false,
|
| 73 |
-
"single_word": false,
|
| 74 |
-
"special": true
|
| 75 |
-
},
|
| 76 |
-
"9": {
|
| 77 |
-
"content": "<issue_comment>",
|
| 78 |
-
"lstrip": false,
|
| 79 |
-
"normalized": false,
|
| 80 |
-
"rstrip": false,
|
| 81 |
-
"single_word": false,
|
| 82 |
-
"special": true
|
| 83 |
-
},
|
| 84 |
-
"10": {
|
| 85 |
-
"content": "<issue_closed>",
|
| 86 |
-
"lstrip": false,
|
| 87 |
-
"normalized": false,
|
| 88 |
-
"rstrip": false,
|
| 89 |
-
"single_word": false,
|
| 90 |
-
"special": true
|
| 91 |
-
},
|
| 92 |
-
"11": {
|
| 93 |
-
"content": "<jupyter_start>",
|
| 94 |
-
"lstrip": false,
|
| 95 |
-
"normalized": false,
|
| 96 |
-
"rstrip": false,
|
| 97 |
-
"single_word": false,
|
| 98 |
-
"special": true
|
| 99 |
-
},
|
| 100 |
-
"12": {
|
| 101 |
-
"content": "<jupyter_text>",
|
| 102 |
-
"lstrip": false,
|
| 103 |
-
"normalized": false,
|
| 104 |
-
"rstrip": false,
|
| 105 |
-
"single_word": false,
|
| 106 |
-
"special": true
|
| 107 |
-
},
|
| 108 |
-
"13": {
|
| 109 |
-
"content": "<jupyter_code>",
|
| 110 |
-
"lstrip": false,
|
| 111 |
-
"normalized": false,
|
| 112 |
-
"rstrip": false,
|
| 113 |
-
"single_word": false,
|
| 114 |
-
"special": true
|
| 115 |
-
},
|
| 116 |
-
"14": {
|
| 117 |
-
"content": "<jupyter_output>",
|
| 118 |
-
"lstrip": false,
|
| 119 |
-
"normalized": false,
|
| 120 |
-
"rstrip": false,
|
| 121 |
-
"single_word": false,
|
| 122 |
-
"special": true
|
| 123 |
-
},
|
| 124 |
-
"15": {
|
| 125 |
-
"content": "<jupyter_script>",
|
| 126 |
-
"lstrip": false,
|
| 127 |
-
"normalized": false,
|
| 128 |
-
"rstrip": false,
|
| 129 |
-
"single_word": false,
|
| 130 |
-
"special": true
|
| 131 |
-
},
|
| 132 |
-
"16": {
|
| 133 |
-
"content": "<empty_output>",
|
| 134 |
-
"lstrip": false,
|
| 135 |
-
"normalized": false,
|
| 136 |
-
"rstrip": false,
|
| 137 |
-
"single_word": false,
|
| 138 |
-
"special": true
|
| 139 |
-
}
|
| 140 |
-
},
|
| 141 |
-
"additional_special_tokens": [
|
| 142 |
-
"<|im_start|>",
|
| 143 |
-
"<|im_end|>"
|
| 144 |
-
],
|
| 145 |
"bos_token": "<|im_start|>",
|
| 146 |
"clean_up_tokenization_spaces": false,
|
| 147 |
"eos_token": "<|im_end|>",
|
| 148 |
-
"
|
|
|
|
|
|
|
|
|
|
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up_tokenization_spaces": false,
|
| 6 |
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"<|im_start|>",
|
| 10 |
+
"<|im_end|>"
|
| 11 |
+
],
|
| 12 |
+
"is_local": false,
|
| 13 |
"model_max_length": 8192,
|
| 14 |
"pad_token": "<|im_end|>",
|
| 15 |
"tokenizer_class": "GPT2Tokenizer",
|