Text Generation
Transformers
TensorBoard
Safetensors
PEFT
starcoder2
Trained with AutoTrain
text-generation-inference
conversational
Instructions to use jcarbonnell/NEARCoder-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jcarbonnell/NEARCoder-3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jcarbonnell/NEARCoder-3b") 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("jcarbonnell/NEARCoder-3b") model = AutoModelForCausalLM.from_pretrained("jcarbonnell/NEARCoder-3b", 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 jcarbonnell/NEARCoder-3b with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jcarbonnell/NEARCoder-3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jcarbonnell/NEARCoder-3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jcarbonnell/NEARCoder-3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jcarbonnell/NEARCoder-3b
- SGLang
How to use jcarbonnell/NEARCoder-3b 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 "jcarbonnell/NEARCoder-3b" \ --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": "jcarbonnell/NEARCoder-3b", "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 "jcarbonnell/NEARCoder-3b" \ --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": "jcarbonnell/NEARCoder-3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jcarbonnell/NEARCoder-3b with Docker Model Runner:
docker model run hf.co/jcarbonnell/NEARCoder-3b
Commit History
-
Upload folder using huggingface_hub
Verified signaturea05aea8 -
Upload folder using huggingface_hub
Verified signature8722f72 -
Upload folder using huggingface_hub
Verified signaturea8b7485 -
Upload folder using huggingface_hub
Verified signature77617c3 -
Upload folder using huggingface_hub
Verified signatureb4953f3 -
Upload folder using huggingface_hub
Verified signature21e13b5 -
Upload folder using huggingface_hub
Verified signature07131e6 -
Upload folder using huggingface_hub
Verified signature6006cfc -
Upload folder using huggingface_hub
Verified signature0b175f0 -
Upload folder using huggingface_hub
Verified signature0baed8a -
Upload folder using huggingface_hub
Verified signature937ae28 -
Upload folder using huggingface_hub
Verified signaturefa94e5f -
Upload folder using huggingface_hub
Verified signature1e909f3 -
Upload folder using huggingface_hub
Verified signature23a69e7 -
Upload folder using huggingface_hub
Verified signaturecd28020 -
Upload folder using huggingface_hub
Verified signature6797bfc -
Upload folder using huggingface_hub
Verified signatured758acc -
Upload folder using huggingface_hub
Verified signaturefad3ec4 -
Upload folder using huggingface_hub
Verified signature33a7d8e -
Upload folder using huggingface_hub
Verified signaturefce1249 -
Upload folder using huggingface_hub
Verified signaturee68df38 -
Upload folder using huggingface_hub
Verified signatureb537db9 -
Upload folder using huggingface_hub
Verified signature402c79a -
Upload folder using huggingface_hub
Verified signature70792e6 -
Upload folder using huggingface_hub
Verified signatureeb4ed4d -
Upload folder using huggingface_hub
Verified signature24892e1 -
Upload folder using huggingface_hub
Verified signature89c585a -
Upload folder using huggingface_hub
Verified signaturee858418 -
Upload folder using huggingface_hub
Verified signature5e76d29 -
Upload folder using huggingface_hub
Verified signaturee43026c -
Upload folder using huggingface_hub
Verified signature44b49db -
Upload folder using huggingface_hub
Verified signatured2d1afd -
Upload folder using huggingface_hub
Verified signatured7f6c8a -
Upload folder using huggingface_hub
Verified signaturea63c0d2 -
Upload folder using huggingface_hub
Verified signature60b3eac -
Upload folder using huggingface_hub
Verified signature2eb1f8b -
Upload folder using huggingface_hub
Verified signaturef94d6ea -
Upload folder using huggingface_hub
Verified signature79616a0 -
Upload folder using huggingface_hub
Verified signature665898b -
Upload folder using huggingface_hub
Verified signaturea71dfe7 -
Upload folder using huggingface_hub
Verified signature1873421 -
Upload folder using huggingface_hub
Verified signature9ea31b8 -
Upload folder using huggingface_hub
Verified signatured99a1fe -
Upload folder using huggingface_hub
Verified signature03b86e8 -
Upload folder using huggingface_hub
Verified signature0be02a9 -
Upload folder using huggingface_hub
Verified signaturebfa5dcb -
Upload folder using huggingface_hub
Verified signatureecfb632 -
Upload folder using huggingface_hub
Verified signature300ee42 -
Upload folder using huggingface_hub
Verified signature344675f
-
Upload folder using huggingface_hub
Verified signature297084e