Text Generation
Transformers
Safetensors
gpt2
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use nickmalhotra/ProjectIndus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nickmalhotra/ProjectIndus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nickmalhotra/ProjectIndus") 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("nickmalhotra/ProjectIndus") model = AutoModelForCausalLM.from_pretrained("nickmalhotra/ProjectIndus", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nickmalhotra/ProjectIndus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nickmalhotra/ProjectIndus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nickmalhotra/ProjectIndus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nickmalhotra/ProjectIndus
- SGLang
How to use nickmalhotra/ProjectIndus 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 "nickmalhotra/ProjectIndus" \ --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": "nickmalhotra/ProjectIndus", "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 "nickmalhotra/ProjectIndus" \ --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": "nickmalhotra/ProjectIndus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nickmalhotra/ProjectIndus with Docker Model Runner:
docker model run hf.co/nickmalhotra/ProjectIndus
Commit History
-
Update README.md
Verified signatureFormat the output to exclude the special tokens and the input. Focusing solely on the output generatedcfbc749
-
Upload openai_gsm8k_test_hi_translated.csv
Verified signatureTranslated data4f2e365 -
Upload 4 files
Verified signatureFiles added for the samef05550b -
Create SFT/prepare_sft_dataset.py
Verified signature19871d5
-
Update README.md
Verified signaturea510b5a
-
Upload LICENSE_AGREEMENT_ PROJECT_INDUS.docx
Verified signature309a82d
-
Update README.md
Verified signatureaee0eac -
Update README.md
Verified signature4144863
-
Update README.md
Verified signature8023f3d -
Update README.md (#4)
Verified signature- Update README.md (0ebbf982375b197c97aa70c403d9c75f5027beef) Co-authored-by: Satish Kumar Mishra <zicsx@users.noreply.huggingface.co>4c6a206 -
Update README.md (#3)
Verified signature- Update README.md (b192ff668cf03e851dfd1ee424c8d58c2037bc31) Co-authored-by: Satish Kumar Mishra <zicsx@users.noreply.huggingface.co>b2e94cf -
Update README.md
Verified signature636604e -
Update README.md (#2)
Verified signature- Update README.md (82d5c4e74d71a38469bd522669aa6adea80e4ace) Co-authored-by: Satish Kumar Mishra <zicsx@users.noreply.huggingface.co>30d795c
-
Update README.md
Verified signature0fce1f0 -
Update README.md
f527b87 -
Update README.md
16da29a -
Adding Evaluation Results (#1)
Verified signature- Adding Evaluation Results (57af567cdfcdc5935dc7bd682e4ff69721f5b88e) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>7596e2e
-
Update README.md
Verified signature61331dc -
Update README.md
Verified signatureba68b88 -
Update README.md
Verified signatureaf4024f -
Update README.md
Verified signature27b2fdf -
Update README.md
Verified signature56c92de -
Update README.md
Verified signature896bf9f
-
Update README.md
Verified signaturebaefab7
-
Upload tokenizer_config.json
Verified signaturefa42311 -
Upload tokenizer.json
Verified signatured49d2de -
Upload special_tokens_map.json
Verified signature690138f -
Upload model.safetensors
Verified signature852722a -
Upload generation_config.json
Verified signature54eb0f4 -
Upload config.json
Verified signaturef50eee6 -
Update README.md
Verified signature5bee01f -
initial commit
Verified signatureca396d1