Text Generation
Transformers
Safetensors
PEFT
llama
causal-lm
Trained with AutoTrain
conversational
text-generation-inference
Instructions to use jnjj/my-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jnjj/my-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jnjj/my-model") 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("jnjj/my-model") model = AutoModelForCausalLM.from_pretrained("jnjj/my-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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use jnjj/my-model with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jnjj/my-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jnjj/my-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": "jnjj/my-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jnjj/my-model
- SGLang
How to use jnjj/my-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 "jnjj/my-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": "jnjj/my-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 "jnjj/my-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": "jnjj/my-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jnjj/my-model with Docker Model Runner:
docker model run hf.co/jnjj/my-model
Commit History
-
auto push 2025-05-10 13:27:22
Verified signatureAutomatic background upload of fine-tuned model artifacts.e434e00 -
auto push 2025-05-10 12:56:46
Verified signatureAutomatic background upload of fine-tuned model artifacts.8fe8e9a -
auto push 2025-05-10 12:53:42
Verified signatureAutomatic background upload of fine-tuned model artifacts.fe50d4c -
auto push 2025-05-10 12:50:37
Verified signatureAutomatic background upload of fine-tuned model artifacts.113c8a8 -
auto push 2025-05-10 12:47:33
Verified signatureAutomatic background upload of fine-tuned model artifacts.4b0483d -
auto push 2025-05-10 12:44:27
Verified signatureAutomatic background upload of fine-tuned model artifacts.2ba7cc9 -
auto push 2025-05-10 12:41:23
Verified signatureAutomatic background upload of fine-tuned model artifacts.64156f1 -
auto push 2025-05-10 12:38:18
Verified signatureAutomatic background upload of fine-tuned model artifacts.f5bc9ae -
auto push 2025-05-10 12:35:14
Verified signatureAutomatic background upload of fine-tuned model artifacts.c5a4eaf -
auto push 2025-05-10 12:32:09
Verified signatureAutomatic background upload of fine-tuned model artifacts.8e8ca25 -
auto push 2025-05-10 12:29:05
Verified signatureAutomatic background upload of fine-tuned model artifacts.915d759 -
auto push 2025-05-10 12:26:00
Verified signatureAutomatic background upload of fine-tuned model artifacts.5a564ab -
auto push 2025-05-10 12:22:56
Verified signatureAutomatic background upload of fine-tuned model artifacts.6cb1a48 -
auto push 2025-05-10 12:19:51
Verified signatureAutomatic background upload of fine-tuned model artifacts.403e09c -
auto push 2025-05-10 12:16:47
Verified signatureAutomatic background upload of fine-tuned model artifacts.457ed47 -
auto push 2025-05-10 12:13:43
Verified signatureAutomatic background upload of fine-tuned model artifacts.5809e1e -
auto push 2025-05-10 12:10:36
Verified signatureAutomatic background upload of fine-tuned model artifacts.a15b08a -
auto push 2025-05-10 12:07:32
Verified signatureAutomatic background upload of fine-tuned model artifacts.790be18 -
auto push 2025-05-10 12:04:28
Verified signatureAutomatic background upload of fine-tuned model artifacts.e1ba686 -
auto push 2025-05-10 12:01:24
Verified signatureAutomatic background upload of fine-tuned model artifacts.dc33d75 -
auto push 2025-05-10 11:58:20
Verified signatureAutomatic background upload of fine-tuned model artifacts.658246f -
auto push 2025-05-10 11:55:15
Verified signatureAutomatic background upload of fine-tuned model artifacts.ab94513 -
auto push 2025-05-10 11:52:10
Verified signatureAutomatic background upload of fine-tuned model artifacts.a2ef4f6 -
auto push 2025-05-10 11:49:06
Verified signatureAutomatic background upload of fine-tuned model artifacts.eb63f16 -
auto push 2025-05-10 11:46:02
Verified signatureAutomatic background upload of fine-tuned model artifacts.b43ea7d -
auto push 2025-05-10 11:42:58
Verified signatureAutomatic background upload of fine-tuned model artifacts.d46f513 -
auto push 2025-05-10 11:39:53
Verified signatureAutomatic background upload of fine-tuned model artifacts.bd3a641 -
auto push 2025-05-10 11:36:47
Verified signatureAutomatic background upload of fine-tuned model artifacts.ac99d2b -
auto push 2025-05-10 11:33:44
Verified signatureAutomatic background upload of fine-tuned model artifacts.3969b57 -
auto push 2025-05-10 11:30:40
Verified signatureAutomatic background upload of fine-tuned model artifacts.5c55733 -
auto push 2025-05-10 11:27:36
Verified signatureAutomatic background upload of fine-tuned model artifacts.c60ace1 -
auto push 2025-05-10 11:24:31
Verified signatureAutomatic background upload of fine-tuned model artifacts.15d2ea7 -
auto push 2025-05-10 11:21:27
Verified signatureAutomatic background upload of fine-tuned model artifacts.06496c1 -
auto push 2025-05-10 11:15:20
Verified signatureAutomatic background upload of fine-tuned model artifacts.be87f79 -
auto push 2025-05-10 11:12:16
Verified signatureAutomatic background upload of fine-tuned model artifacts.d37cb2d -
auto push 2025-05-10 11:09:11
Verified signatureAutomatic background upload of fine-tuned model artifacts.9e1d6db -
auto push 2025-05-10 11:06:06
Verified signatureAutomatic background upload of fine-tuned model artifacts.561ff97 -
auto push 2025-05-10 11:03:02
Verified signatureAutomatic background upload of fine-tuned model artifacts.b949950 -
auto push 2025-05-10 10:59:58
Verified signatureAutomatic background upload of fine-tuned model artifacts.ee4203f -
auto push 2025-05-10 10:56:54
Verified signatureAutomatic background upload of fine-tuned model artifacts.c7c9d13 -
auto push 2025-05-10 10:53:49
Verified signatureAutomatic background upload of fine-tuned model artifacts.54ebf08 -
auto push 2025-05-10 10:50:45
Verified signatureAutomatic background upload of fine-tuned model artifacts.390b6f9 -
auto push 2025-05-10 10:47:41
Verified signatureAutomatic background upload of fine-tuned model artifacts.6a97271 -
auto push 2025-05-10 10:44:37
Verified signatureAutomatic background upload of fine-tuned model artifacts.45f0fb2 -
auto push 2025-05-10 10:41:33
Verified signatureAutomatic background upload of fine-tuned model artifacts.2b568a3 -
auto push 2025-05-10 10:38:29
Verified signatureAutomatic background upload of fine-tuned model artifacts.40e2dad -
auto push 2025-05-10 10:35:25
Verified signatureAutomatic background upload of fine-tuned model artifacts.849b6cc -
auto push 2025-05-10 10:32:20
Verified signatureAutomatic background upload of fine-tuned model artifacts.1c00d53 -
auto push 2025-05-10 10:29:16
Verified signatureAutomatic background upload of fine-tuned model artifacts.b8fc133 -
auto push 2025-05-10 10:26:12
Verified signatureAutomatic background upload of fine-tuned model artifacts.241e7fe