Views
No views yet
Mistral-7B-Instruct, known for concise and instruction-following responses1from transformers import pipeline
2
3pipe = pipeline(
4 "text-generation",
5 model="pranav2711/ncu-smartllm",
6 tokenizer="pranav2711/ncu-smartllm",
7 device_map="auto"
8)
9
10prompt = """### Instruction:
11What is the role of the compiler and linker in the C language?
12
13### Response:
14"""
15
16output = pipe(prompt, max_new_tokens=200, temperature=0.7)
17print(output[0]["generated_text"])mistralai/Mistral-7B-Instruct-v0.1PEFTbnb4bit) for fast training on Colab Protransformers, bitsandbytes, peft, accelerateOfficial Syllabus PDFs (official NCU syllabus)1### Instruction:
2Explain the difference between a compiler and an interpreter.
3
4### Response:
5A compiler translates an entire program into machine code before execution...1### Instruction:
2What is the credit structure and content for FOCP-I?
3
4### Response:
5FOCP-I (CSL106) is structured as (2-0-4) credits...1### Instruction:
2List types of number systems in computing and their conversions.
3
4### Response:
5There are four primary number systems: Binary, Decimal, Octal, and Hexadecimal...@misc{ncu2024smartllm,
title = {NCU SmartLLM: Fine-tuned Mistral 7B on Academic Syllabus},
author = {Pranav},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/pranav2711/ncu-smartllm}}
}