Instructions to use nativemind/mozgach_final_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nativemind/mozgach_final_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nativemind/mozgach_final_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nativemind/mozgach_final_model") model = AutoModelForCausalLM.from_pretrained("nativemind/mozgach_final_model", 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 nativemind/mozgach_final_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nativemind/mozgach_final_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nativemind/mozgach_final_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nativemind/mozgach_final_model
- SGLang
How to use nativemind/mozgach_final_model 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 "nativemind/mozgach_final_model" \ --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": "nativemind/mozgach_final_model", "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 "nativemind/mozgach_final_model" \ --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": "nativemind/mozgach_final_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nativemind/mozgach_final_model with Docker Model Runner:
docker model run hf.co/nativemind/mozgach_final_model
Commit ·
aeaa98b
1
Parent(s): 5378d92
Cleaning
Browse files- README.md +0 -4
- config.json +0 -28
- merges.txt +0 -0
- scheduler.pt +0 -3
- special_tokens_map.json +0 -1
- tokenizer_config.json +0 -1
- training_args.bin +0 -3
- vocab.json +0 -0
README.md
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
# TrueGPT Small: AI Model for Action and Empowerment
|
| 2 |
-
|
| 3 |
-
TrueGPT Small is a lightweight version of the TrueGPT artificial intelligence model, designed for users who need the empowering and actionable features of TrueGPT with reduced computational requirements. By providing actionable solutions and eliminating uncertainty, TrueGPT Small retains the core features of the original TrueGPT while making it accessible to a wider range of devices and systems. With seamless integration to the Hugging Face ecosystem, users can easily utilize TrueGPT Small for various AI applications.
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_name_or_path": "sberbank-ai/rugpt3small_based_on_gpt2",
|
| 3 |
-
"activation_function": "gelu_new",
|
| 4 |
-
"architectures": [
|
| 5 |
-
"GPT2LMHeadModel"
|
| 6 |
-
],
|
| 7 |
-
"attn_pdrop": 0.1,
|
| 8 |
-
"bos_token_id": 50256,
|
| 9 |
-
"embd_pdrop": 0.1,
|
| 10 |
-
"eos_token_id": 50256,
|
| 11 |
-
"gradient_checkpointing": false,
|
| 12 |
-
"initializer_range": 0.02,
|
| 13 |
-
"layer_norm_epsilon": 1e-05,
|
| 14 |
-
"model_type": "gpt2",
|
| 15 |
-
"n_ctx": 2048,
|
| 16 |
-
"n_embd": 768,
|
| 17 |
-
"n_head": 12,
|
| 18 |
-
"n_inner": null,
|
| 19 |
-
"n_layer": 12,
|
| 20 |
-
"n_positions": 2048,
|
| 21 |
-
"resid_pdrop": 0.1,
|
| 22 |
-
"summary_activation": null,
|
| 23 |
-
"summary_first_dropout": 0.1,
|
| 24 |
-
"summary_proj_to_labels": true,
|
| 25 |
-
"summary_type": "cls_index",
|
| 26 |
-
"summary_use_proj": true,
|
| 27 |
-
"vocab_size": 50257
|
| 28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
merges.txt
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scheduler.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f6c721dbad10d1b2d813351701f3f3ce8d3a9f09b0697a9717bc27a2030f764c
|
| 3 |
-
size 326
|
|
|
|
|
|
|
|
|
|
|
|
special_tokens_map.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"bos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}}
|
|
|
|
|
|
tokenizer_config.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"errors": "replace", "unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "sberbank-ai/rugpt3small_based_on_gpt2"}
|
|
|
|
|
|
training_args.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4b6e0ea54b1ed591fd654fa0c9fdaeec72495485abd4e68624bae9d0d49ec4b7
|
| 3 |
-
size 1281
|
|
|
|
|
|
|
|
|
|
|
|
vocab.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|