This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # Form implementation generated from reading ui file 'chart.ui' | |
| # | |
| # Created by: PyQt5 UI code generator 5.13.0 | |
| # | |
| # WARNING! All changes made in this file will be lost! | |
| from PyQt5 import QtCore, QtGui, QtWidgets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Age/Gender/Area | |
| # Financial/Health/Agricultural/Defence | |
| import os | |
| from flask import Flask,request | |
| from twilio.twiml.voice_response import VoiceResponse,Gather | |
| from twilio.rest import Client | |
| import requests | |
| app = Flask(__name__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Solving Cache Coherence with Padding | |
| struct padded_int | |
| { | |
| int val; | |
| char padding[60]; | |
| } private_count[MAX_THREADS]; | |
| //Peril-R | |
| forall(index in (1..12)) | |
| exclusive {} |
If you’ve been looking for a no-nonsense guide to replacing a light bulb, you’ve just struck gold! These guidelines are for you if you need to change your light bulb out.
We’ve established, for starters, that there seems to be something off with the light bulb. Flicking the switch on/off does not yield expected results.
To rectify the above problem, we may need:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_name_or_path": "microsoft/Phi-3-mini-128k-instruct-onnx", | |
| "architectures": [ | |
| "Phi3ForCausalLM" | |
| ], | |
| "attention_dropout": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "configuration_phi3.Phi3Config", | |
| "AutoModelForCausalLM": "modeling_phi3.Phi3ForCausalLM" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding=utf-8 | |
| # Copyright 2024 Microsoft and the HuggingFace Inc. team. All rights reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| messages = [ | |
| {"role": "user", "content": "Can you provide ways to eat combinations of bananas and dragonfruits?"}, | |
| {"role": "assistant", "content": "Sure! Here are some ways to eat bananas and dragonfruits together: 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey. 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey."}, | |
| {"role": "user", "content": "What about solving an 2x + 3 = 7 equation?"}, | |
| ] | |
| pipe = pipeline( | |
| "text-generation", | |
| model=model, | |
| tokenizer=tokenizer, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| from transformers import AutoModelForCausalLM, AutoTokenizer, AwqConfig | |
| model_id = "hugging-quants/Meta-Llama-3.1-8B-Instruct-AWQ-INT4" | |
| quantization_config = AwqConfig( | |
| bits=4, | |
| fuse_max_seq_len=512, # Note: Update this as per your use-case | |
| do_fuse=True, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 31d5ba1a | |
| {"test": [{"input": [[9, 9, 0, 9, 0], [0, 0, 9, 0, 9], [0, 0, 0, 9, 9], [4, 4, 4, 0, 4], [4, 0, 4, 4, 4], [4, 4, 0, 0, 0]], "output": [[0, 0, 6, 6, 6], [6, 0, 0, 6, 0], [6, 6, 0, 6, 6]]}, {"input": [[0, 0, 9, 0, 9], [0, 9, 0, 0, 0], [9, 0, 9, 0, 0], [4, 0, 4, 4, 4], [0, 4, 4, 0, 4], [4, 0, 0, 0, 0]], "output": [[6, 0, 0, 6, 0], [0, 0, 6, 0, 6], [0, 0, 6, 0, 0]]}], "train": [{"input": [[9, 9, 0, 9, 0], [9, 0, 0, 9, 0], [0, 9, 9, 9, 9], [4, 0, 0, 4, 0], [4, 4, 0, 4, 4], [4, 4, 4, 0, 4]], "output": [[0, 6, 0, 0, 0], [0, 6, 0, 0, 6], [6, 0, 0, 6, 0]]}, {"input": [[9, 0, 0, 9, 9], [0, 0, 0, 0, 0], [0, 0, 9, 0, 9], [0, 0, 4, 4, 0], [4, 4, 4, 0, 0], [4, 0, 4, 0, 4]], "output": [[6, 0, 6, 0, 6], [6, 6, 6, 0, 0], [6, 0, 0, 0, 0]]}, {"input": [[0, 9, 0, 0, 0], [0, 9, 9, 0, 9], [9, 0, 0, 0, 9], [4, 4, 0, 4, 0], [0, 4, 4, 4, 0], [4, 4, 0, 0, 0]], "output": [[6, 0, 0, 6, 0], [0, 0, 0, 6, 6], [0, 6, 0, 0, 6]]}, {"input": [[0, 0, 9, 9, 0], [9, 9, 0, 9, 9], [0, 9, 0, 0, 0], [4, 4, 0, 0, 0], [4, 0, 4, 4, 4], [0, 4, 0 |