Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| ai-chatbot2.Q2_K.gguf | Q2_K | 0.08GB |
| ai-chatbot2.IQ3_XS.gguf | IQ3_XS | 0.08GB |
| ai-chatbot2.IQ3_S.gguf | IQ3_S | 0.08GB |
| ai-chatbot2.Q3_K_S.gguf | Q3_K_S | 0.08GB |
| ai-chatbot2.IQ3_M.gguf | IQ3_M | 0.09GB |
| ai-chatbot2.Q3_K.gguf | Q3_K | 0.09GB |
| ai-chatbot2.Q3_K_M.gguf | Q3_K_M | 0.09GB |
| ai-chatbot2.Q3_K_L.gguf | Q3_K_L | 0.1GB |
| ai-chatbot2.IQ4_XS.gguf | IQ4_XS | 0.1GB |
| ai-chatbot2.Q4_0.gguf | Q4_0 | 0.1GB |
| ai-chatbot2.IQ4_NL.gguf | IQ4_NL | 0.1GB |
| ai-chatbot2.Q4_K_S.gguf | Q4_K_S | 0.1GB |
| ai-chatbot2.Q4_K.gguf | Q4_K | 0.11GB |
| ai-chatbot2.Q4_K_M.gguf | Q4_K_M | 0.11GB |
| ai-chatbot2.Q4_1.gguf | Q4_1 | 0.11GB |
| ai-chatbot2.Q5_0.gguf | Q5_0 | 0.11GB |
| ai-chatbot2.Q5_K_S.gguf | Q5_K_S | 0.11GB |
| ai-chatbot2.Q5_K.gguf | Q5_K | 0.12GB |
| ai-chatbot2.Q5_K_M.gguf | Q5_K_M | 0.12GB |
| ai-chatbot2.Q5_1.gguf | Q5_1 | 0.12GB |
| ai-chatbot2.Q6_K.gguf | Q6_K | 0.13GB |
| ai-chatbot2.Q8_0.gguf | Q8_0 | 0.17GB |
1from transformers import GPT2LMHeadModel, GPT2Tokenizer
2
3# Load the fine-tuned model and tokenizer
4model = GPT2LMHeadModel.from_pretrained("sohail2332/ai-chatbot2")
5tokenizer = GPT2Tokenizer.from_pretrained("sohail2332/ai-chatbot2")
6
7# Generate text
8input_text = "Hello, how can I help you today?"
9input_ids = tokenizer.encode(input_text, return_tensors='pt')
10
11# Generate a response
12output = model.generate(input_ids, max_length=50, num_return_sequences=1)
13response = tokenizer.decode(output[0], skip_special_tokens=True)
14
15print(response)
16